Commit a348f053 authored by Tero Kristo's avatar Tero Kristo Committed by Stephen Boyd

ARM: omap2+: hwmod: drop CLK_IS_BASIC flag usage

CLK_IS_BASIC flag is about to get deprecated, and as such, can't be used.
Instead, the API call for checking whether a clock is of type hw_omap shall
be used, so convert the code to use this.
Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent b88b5b71
...@@ -648,10 +648,10 @@ static struct clockdomain *_get_clkdm(struct omap_hwmod *oh) ...@@ -648,10 +648,10 @@ static struct clockdomain *_get_clkdm(struct omap_hwmod *oh)
if (oh->clkdm) { if (oh->clkdm) {
return oh->clkdm; return oh->clkdm;
} else if (oh->_clk) { } else if (oh->_clk) {
if (__clk_get_flags(oh->_clk) & CLK_IS_BASIC) if (!omap2_clk_is_hw_omap(__clk_get_hw(oh->_clk)))
return NULL; return NULL;
clk = to_clk_hw_omap(__clk_get_hw(oh->_clk)); clk = to_clk_hw_omap(__clk_get_hw(oh->_clk));
return clk->clkdm; return clk->clkdm;
} }
return NULL; return NULL;
} }
......
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