projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ce133e
)
clk: scpi: Fix checking return value of platform_device_register_simple()
author
Axel Lin
<axel.lin@ingics.com>
Fri, 4 Dec 2015 06:51:36 +0000
(14:51 +0800)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 29 Jan 2016 20:07:59 +0000
(12:07 -0800)
platform_device_register_simple() returns ERR_PTR on error.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-scpi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk-scpi.c
b/drivers/clk/clk-scpi.c
index cd0f2726f5e0dd0da33b06e4518f02fc231cf1f7..89e9ca78bb947ec2ff8242d5d826ccf8449d6259 100644
(file)
--- a/
drivers/clk/clk-scpi.c
+++ b/
drivers/clk/clk-scpi.c
@@
-299,7
+299,7
@@
static int scpi_clocks_probe(struct platform_device *pdev)
/* Add the virtual cpufreq device */
cpufreq_dev = platform_device_register_simple("scpi-cpufreq",
-1, NULL, 0);
- if (
!cpufreq_dev
)
+ if (
IS_ERR(cpufreq_dev)
)
pr_warn("unable to register cpufreq device");
return 0;