diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2014-03-26 16:06:35 -0700 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-04-30 11:51:47 -0700 |
commit | 86a612349fa58467cd63b30748114ec377d61807 (patch) | |
tree | 0b2e0c3474f7810b74874927ec1aa91b1b437bd7 /drivers/clk/clk.c | |
parent | 8d90c5aff3e8b128fda43aac83b4442048b51bad (diff) | |
download | linux-86a612349fa58467cd63b30748114ec377d61807.tar.bz2 |
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.c | 3 |
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; |