Commit e281f7ec authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Tony Lindgren

arm: omap2: io: fix clk_get() error check

clk_get() return value should be checked with IS_ERR().
Signed-off-by: default avatarAaro Koskinen <>
Acked-by: default avatarKevin Hilman <>
Signed-off-by: default avatarTony Lindgren <>
parent cb9675f3
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment