summaryrefslogtreecommitdiff
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-03-27 03:06:35 +0400
committerMike Turquette <mturquette@linaro.org>2014-04-30 22:51:47 +0400
commit86a612349fa58467cd63b30748114ec377d61807 (patch)
tree0b2e0c3474f7810b74874927ec1aa91b1b437bd7 /drivers/clk/clk.c
parent8d90c5aff3e8b128fda43aac83b4442048b51bad (diff)
downloadlinux-86a612349fa58467cd63b30748114ec377d61807.tar.xz
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>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 7cf2c093cc54..453cf3d210d2 100644
--- a/drivers/clk/clk.c
+++ b/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;