提交 f3f8290c 编写于 作者: P Paul Mundt

sh: clkfwk: Handle clk_get_sys() returning an ERR_PTR.

clk_get() needs to also perform an IS_ERR() check to see whether
clk_get_sys() failed or not.
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 0dae8957
......@@ -399,7 +399,7 @@ struct clk *clk_get(struct device *dev, const char *id)
int idno;
clk = clk_get_sys(dev_id, id);
if (clk)
if (clk && !IS_ERR(clk))
return clk;
if (dev == NULL || dev->bus != &platform_bus_type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册