summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-03-27 00:06:35 +0100
committerMike Turquette <mturquette@linaro.org>2014-04-30 20:51:47 +0200
commit86a612349fa58467cd63b30748114ec377d61807 (patch)
tree0b2e0c3474f7810b74874927ec1aa91b1b437bd7 /drivers/clk/clk.c
parentARM: dts: use real clocks for bcm21664 (diff)
downloadlinux-86a612349fa58467cd63b30748114ec377d61807.tar.xz
linux-86a612349fa58467cd63b30748114ec377d61807.zip
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 '')
-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;