projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d90c5a
)
clk: Don't check for missing ops in clk_set_parent()
author
Stephen Boyd
<sboyd@codeaurora.org>
Wed, 26 Mar 2014 23:06:35 +0000
(16:06 -0700)
committer
Mike 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/clk/clk.c
b/drivers/clk/clk.c
index 7cf2c093cc54f28dbebd9482e43233a49daf02e3..453cf3d210d2556b41c93d89e89bde7a4968f7b8 100644
(file)
--- 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;