OSDN Git Service
(root)
/
uclinux-h8
/
linux.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
|
history
diff --git
a/arch/arm/mach-omap2/io.c
b/arch/arm/mach-omap2/io.c
index
40562dd
..
a1939b1
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);