Przeglądaj źródła

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: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Stephen Boyd 11 lat temu
rodzic
commit
86a612349f
1 zmienionych plików z 0 dodań i 3 usunięć
  1. 0 3
      drivers/clk/clk.c

+ 0 - 3
drivers/clk/clk.c

@@ -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;