Commit b137b450 authored by Stephen Boyd's avatar Stephen Boyd Committed by Michael Turquette

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: default avatarTero Kristo <t-kristo@ti.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 98d8a60e
...@@ -47,9 +47,6 @@ int omap2_clk_deny_idle(struct clk *clk) ...@@ -47,9 +47,6 @@ int omap2_clk_deny_idle(struct clk *clk)
{ {
struct clk_hw_omap *c; struct clk_hw_omap *c;
if (__clk_get_flags(clk) & CLK_IS_BASIC)
return -EINVAL;
c = to_clk_hw_omap(__clk_get_hw(clk)); c = to_clk_hw_omap(__clk_get_hw(clk));
if (c->ops && c->ops->deny_idle) if (c->ops && c->ops->deny_idle)
c->ops->deny_idle(c); c->ops->deny_idle(c);
...@@ -66,9 +63,6 @@ int omap2_clk_allow_idle(struct clk *clk) ...@@ -66,9 +63,6 @@ int omap2_clk_allow_idle(struct clk *clk)
{ {
struct clk_hw_omap *c; struct clk_hw_omap *c;
if (__clk_get_flags(clk) & CLK_IS_BASIC)
return -EINVAL;
c = to_clk_hw_omap(__clk_get_hw(clk)); c = to_clk_hw_omap(__clk_get_hw(clk));
if (c->ops && c->ops->allow_idle) if (c->ops && c->ops->allow_idle)
c->ops->allow_idle(c); c->ops->allow_idle(c);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment