Skip to content

Commit

Permalink
arm: omap2: io: fix clk_get() error check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaro Koskinen authored and Tony Lindgren committed Dec 8, 2010
1 parent cb9675f commit e281f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e281f7e

Please sign in to comment.