summaryrefslogtreecommitdiffstats
path: root/arch/avr32/boards/hammerhead/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/avr32/boards/hammerhead/setup.c')
-rw-r--r--arch/avr32/boards/hammerhead/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/boards/hammerhead/setup.c b/arch/avr32/boards/hammerhead/setup.c
index dd009875a40..da14fbdd4e8 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)
regs = (void __iomem __force *)res->start;
pclk = clk_get(&pdev->dev, "pclk");
- if (!pclk)
+ if (IS_ERR(pclk))
return;
clk_enable(pclk);