projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb9675f
)
arm: omap2: io: fix clk_get() error check
author
Aaro Koskinen
<Aaro.Koskinen@nokia.com>
Tue, 30 Nov 2010 14:17:58 +0000
(14:17 +0000)
committer
Tony Lindgren
<tony@atomide.com>
Wed, 8 Dec 2010 02:12:56 +0000
(18:12 -0800)
clk_get() return value should be checked with IS_ERR().
Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/io.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-omap2/io.c
b/arch/arm/mach-omap2/io.c
index 40562ddd3ee4fe29ea1e173a61d778225d28b01d..a1939b1e6f82e0d30ca77b8b4156c27eb6f1c4ce 100644
(file)
--- a/
arch/arm/mach-omap2/io.c
+++ b/
arch/arm/mach-omap2/io.c
@@
-297,7
+297,7
@@
static int __init _omap2_init_reprogram_sdrc(void)
return 0;
dpll3_m2_ck = clk_get(NULL, "dpll3_m2_ck");
- if (
!dpll3_m2_ck
)
+ if (
IS_ERR(dpll3_m2_ck)
)
return -EINVAL;
rate = clk_get_rate(dpll3_m2_ck);