clk: Don't check for missing ops in clk_set_parent()
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 26 Mar 2014 23:06:35 +0000 (16:06 -0700)
committerMike Turquette <mturquette@linaro.org>
Wed, 30 Apr 2014 18:51:47 +0000 (11:51 -0700)
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>
drivers/clk/clk.c

index 7cf2c093cc54f28dbebd9482e43233a49daf02e3..453cf3d210d2556b41c93d89e89bde7a4968f7b8 100644 (file)
@@ -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;
This page took 0.027277 seconds and 5 git commands to generate.