diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-05-31 01:25:57 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-31 01:25:57 -0400 |
commit | 2ae2b766357f62630895045c302c87d0727dbd1d (patch) | |
tree | 74461c485518014f209166fcbb955b45aba6248a /arch/arm/mach-shmobile/board-ap4evb.c | |
parent | 8d3e17bab9b3da44a9ebacb03f378353f06e6f83 (diff) |
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 <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
745 | 745 | ||
746 | /* set SPU2 clock to 119.6 MHz */ | 746 | /* set SPU2 clock to 119.6 MHz */ |
747 | clk = clk_get(NULL, "spu_clk"); | 747 | clk = clk_get(NULL, "spu_clk"); |
748 | if (!IS_ERR_VALUE(clk)) { | 748 | if (!IS_ERR(clk)) { |
749 | clk_set_rate(clk, clk_round_rate(clk, 119600000)); | 749 | clk_set_rate(clk, clk_round_rate(clk, 119600000)); |
750 | clk_put(clk); | 750 | clk_put(clk); |
751 | } | 751 | } |
752 | 752 | ||
753 | /* change parent of FSI A */ | 753 | /* change parent of FSI A */ |
754 | clk = clk_get(NULL, "fsia_clk"); | 754 | clk = clk_get(NULL, "fsia_clk"); |
755 | if (!IS_ERR_VALUE(clk)) { | 755 | if (!IS_ERR(clk)) { |
756 | clk_register(&fsiackcr_clk); | 756 | clk_register(&fsiackcr_clk); |
757 | clk_set_parent(clk, &fsiackcr_clk); | 757 | clk_set_parent(clk, &fsiackcr_clk); |
758 | clk_put(clk); | 758 | clk_put(clk); |