提交 86a61234 编写于 作者: S Stephen Boyd 提交者: Mike Turquette

clk: Don't check for missing ops in clk_set_parent()

We dereference clk->ops during clock registration so this check
for NULL ops can't possibly ever be true.
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 8d90c5af
......@@ -1716,9 +1716,6 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
if (!clk)
return 0;
if (!clk->ops)
return -EINVAL;
/* verify ops for for multi-parent clks */
if ((clk->num_parents > 1) && (!clk->ops->set_parent))
return -ENOSYS;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册