arm: omap2: io: fix clk_get() error check
Subsystems (3)
PATCH 1/1 arm: omap2: io: fix clk_get() error check
clk_get() return value should be checked with IS_ERR().
Signed-off-by Aaro Koskinen <[email protected]>
--- arch/arm/mach-omap2/io.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/io.c +1 -1
@@ -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);
Signature · 1 line
1.5.6.5
PATCH 1/1 arm: omap2: io: fix clk_get() error check
Quoted 3 lines · Aaro Koskinen
clk_get()return value should be checked withIS_ERR().Signed-off-by Aaro Koskinen <[email protected]>
Acked-by Kevin Hilman <[email protected]>
Quoted 17 lines
--- arch/arm/mach-omap2/io.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-omap2/io.c +1
-1@@ -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);
Tony Lindgren
maintainerPATCH 1/1 arm: omap2: io: fix clk_get() error check
Quoted 7 lines · Kevin Hilman
Quoted 3 lines · Aaro Koskinen
clk_get()return value should be checked withIS_ERR().Signed-off-by Aaro Koskinen <[email protected]>Acked-by Kevin Hilman <[email protected]>
Thanks, will queue.
Tony