summaryrefslogtreecommitdiffstats
path: root/arch/avr32/boards/favr-32
diff options
context:
space:
mode:
authorVasiliy Kulikov <segoon@openwall.com>2010-11-26 18:06:12 +0100
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>2011-01-13 20:40:53 +0100
commit36b471e047a77eaf3ec8e693bd9d8291c4dfd864 (patch)
treeeaedd7ca560587611a34c0ff05503d2a129e956b /arch/avr32/boards/favr-32
parentLinux 2.6.37 (diff)
downloadlinux-36b471e047a77eaf3ec8e693bd9d8291c4dfd864.tar.xz
linux-36b471e047a77eaf3ec8e693bd9d8291c4dfd864.zip
avr32: boards: setup: use IS_ERR() instead of NULL check
clk_get() returns ERR_PTR() on error, not NULL. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Diffstat (limited to 'arch/avr32/boards/favr-32')
-rw-r--r--arch/avr32/boards/favr-32/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/boards/favr-32/setup.c b/arch/avr32/boards/favr-32/setup.c
index 75f19f47fb2f..86fab77a5a00 100644
--- a/arch/avr32/boards/favr-32/setup.c
+++ b/arch/avr32/boards/favr-32/setup.c
@@ -206,7 +206,7 @@ static void __init set_hw_addr(struct platform_device *pdev)
*/
regs = (void __iomem __force *)res->start;
pclk = clk_get(&pdev->dev, "pclk");
- if (!pclk)
+ if (IS_ERR(pclk))
return;
clk_enable(pclk);