aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/cpu')
-rw-r--r--arch/sh/kernel/cpu/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c
index 34707b867760..9e1fc133a473 100644
--- a/arch/sh/kernel/cpu/clock.c
+++ b/arch/sh/kernel/cpu/clock.c
@@ -399,7 +399,7 @@ struct clk *clk_get(struct device *dev, const char *id)
399 int idno; 399 int idno;
400 400
401 clk = clk_get_sys(dev_id, id); 401 clk = clk_get_sys(dev_id, id);
402 if (clk) 402 if (clk && !IS_ERR(clk))
403 return clk; 403 return clk;
404 404
405 if (dev == NULL || dev->bus != &platform_bus_type) 405 if (dev == NULL || dev->bus != &platform_bus_type)