aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-07-20 20:23:54 -0400
committerMichael Turquette <mturquette@baylibre.com>2015-08-24 19:48:44 -0400
commitb137b4507c55f2aa80aed03c56c28dd34d35c619 (patch)
tree5ce4b57e2d347bf3a9015e1a32893fce5781d999
parent98d8a60eccee74165793379f1f8a3b1cef3131c7 (diff)
clk: ti: Remove CLK_IS_BASIC check
This code is never called with a basic clock type, so the check here is not doing anything useful and is blocking the removal of __clk_get_flags(). Remove the check so we can delete the __clk_get_flags() API. Acked-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r--drivers/clk/ti/autoidle.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/clk/ti/autoidle.c b/drivers/clk/ti/autoidle.c
index 94f0dcd94181..527f2c6dd0aa 100644
--- a/drivers/clk/ti/autoidle.c
+++ b/drivers/clk/ti/autoidle.c
@@ -47,9 +47,6 @@ int omap2_clk_deny_idle(struct clk *clk)
47{ 47{
48 struct clk_hw_omap *c; 48 struct clk_hw_omap *c;
49 49
50 if (__clk_get_flags(clk) & CLK_IS_BASIC)
51 return -EINVAL;
52
53 c = to_clk_hw_omap(__clk_get_hw(clk)); 50 c = to_clk_hw_omap(__clk_get_hw(clk));
54 if (c->ops && c->ops->deny_idle) 51 if (c->ops && c->ops->deny_idle)
55 c->ops->deny_idle(c); 52 c->ops->deny_idle(c);
@@ -66,9 +63,6 @@ int omap2_clk_allow_idle(struct clk *clk)
66{ 63{
67 struct clk_hw_omap *c; 64 struct clk_hw_omap *c;
68 65
69 if (__clk_get_flags(clk) & CLK_IS_BASIC)
70 return -EINVAL;
71
72 c = to_clk_hw_omap(__clk_get_hw(clk)); 66 c = to_clk_hw_omap(__clk_get_hw(clk));
73 if (c->ops && c->ops->allow_idle) 67 if (c->ops && c->ops->allow_idle)
74 c->ops->allow_idle(c); 68 c->ops->allow_idle(c);