diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2010-11-26 12:06:12 -0500 |
---|---|---|
committer | Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com> | 2011-01-13 14:40:53 -0500 |
commit | 36b471e047a77eaf3ec8e693bd9d8291c4dfd864 (patch) | |
tree | eaedd7ca560587611a34c0ff05503d2a129e956b /arch/avr32/boards/hammerhead/setup.c | |
parent | 3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5 (diff) |
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/hammerhead/setup.c')
-rw-r--r-- | arch/avr32/boards/hammerhead/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/boards/hammerhead/setup.c b/arch/avr32/boards/hammerhead/setup.c index dd009875a405..da14fbdd4e8e 100644 --- a/arch/avr32/boards/hammerhead/setup.c +++ b/arch/avr32/boards/hammerhead/setup.c | |||
@@ -150,7 +150,7 @@ static void __init set_hw_addr(struct platform_device *pdev) | |||
150 | regs = (void __iomem __force *)res->start; | 150 | regs = (void __iomem __force *)res->start; |
151 | pclk = clk_get(&pdev->dev, "pclk"); | 151 | pclk = clk_get(&pdev->dev, "pclk"); |
152 | 152 | ||
153 | if (!pclk) | 153 | if (IS_ERR(pclk)) |
154 | return; | 154 | return; |
155 | 155 | ||
156 | clk_enable(pclk); | 156 | clk_enable(pclk); |