From: Paul Mundt Date: Mon, 31 May 2010 05:25:57 +0000 (+0900) Subject: ARM: mach-shmobile: Fix up ap4evb build warnings. X-Git-Tag: v2.6.36-rc1~102^2^2^2~1^2~24 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2ae2b766357f62630895045c302c87d0727dbd1d;p=karo-tx-linux.git ARM: mach-shmobile: Fix up ap4evb build warnings. The FSI changes introduced IS_ERR_VALUE() checks for error conditions, despite clk_get() handing back a pointer. Switch these over to IS_ERR() like the rest of the code. Signed-off-by: Paul Mundt --- diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 81618ba598e9..bdc4c6bd3108 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@ -745,14 +745,14 @@ static void __init ap4evb_init(void) /* set SPU2 clock to 119.6 MHz */ clk = clk_get(NULL, "spu_clk"); - if (!IS_ERR_VALUE(clk)) { + if (!IS_ERR(clk)) { clk_set_rate(clk, clk_round_rate(clk, 119600000)); clk_put(clk); } /* change parent of FSI A */ clk = clk_get(NULL, "fsia_clk"); - if (!IS_ERR_VALUE(clk)) { + if (!IS_ERR(clk)) { clk_register(&fsiackcr_clk); clk_set_parent(clk, &fsiackcr_clk); clk_put(clk);