projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
973a27c
)
PM / devfreq: exynos-ppmu: Handle return value of clk_prepare_enable
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Fri, 19 May 2017 10:56:04 +0000
(16:26 +0530)
committer
MyungJoo Ham
<myungjoo.ham@samsung.com>
Mon, 12 Jun 2017 01:12:07 +0000
(10:12 +0900)
clk_prepare_enable() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/event/exynos-ppmu.c
patch
|
blob
|
history
diff --git
a/drivers/devfreq/event/exynos-ppmu.c
b/drivers/devfreq/event/exynos-ppmu.c
index 9b7350935b73259828a897a7eea6d4fc9b2e4c4f..8f6537aa989b093640ddbbbfdd0890f671717569 100644
(file)
--- a/
drivers/devfreq/event/exynos-ppmu.c
+++ b/
drivers/devfreq/event/exynos-ppmu.c
@@
-648,7
+648,11
@@
static int exynos_ppmu_probe(struct platform_device *pdev)
dev_name(&pdev->dev), desc[i].name);
}
- clk_prepare_enable(info->ppmu.clk);
+ ret = clk_prepare_enable(info->ppmu.clk);
+ if (ret) {
+ dev_err(&pdev->dev, "failed to prepare ppmu clock\n");
+ return ret;
+ }
return 0;
}