Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86a61234 authored by Stephen Boyd's avatar Stephen Boyd Committed by Mike Turquette
Browse files

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: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent 8d90c5af
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;