diff options
Diffstat (limited to 'drivers/clk/clkdev.c')
-rw-r--r-- | drivers/clk/clkdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index 20649b3c88fe..69085e02bd58 100644 --- a/drivers/clk/clkdev.c +++ b/drivers/clk/clkdev.c | |||
@@ -157,7 +157,7 @@ struct clk *clk_get(struct device *dev, const char *con_id) | |||
157 | 157 | ||
158 | if (dev) { | 158 | if (dev) { |
159 | clk = of_clk_get_by_name(dev->of_node, con_id); | 159 | clk = of_clk_get_by_name(dev->of_node, con_id); |
160 | if (clk && __clk_get(clk)) | 160 | if (!IS_ERR(clk) && __clk_get(clk)) |
161 | return clk; | 161 | return clk; |
162 | } | 162 | } |
163 | 163 | ||