summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorStephen Boyd2014-03-27 00:06:35 +0100
committerMike Turquette2014-04-30 20:51:47 +0200
commit86a612349fa58467cd63b30748114ec377d61807 (patch)
tree0b2e0c3474f7810b74874927ec1aa91b1b437bd7 /drivers/clk
parentARM: dts: use real clocks for bcm21664 (diff)
downloadkernel-qcow2-linux-86a612349fa58467cd63b30748114ec377d61807.tar.gz
kernel-qcow2-linux-86a612349fa58467cd63b30748114ec377d61807.tar.xz
kernel-qcow2-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 'drivers/clk')
-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;