aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2019-04-04 04:11:03 -0400
committerStephen Boyd <sboyd@kernel.org>2019-04-25 13:51:22 -0400
commita348f05361c968cf4a54b6a4f3aeb6f9a271956a (patch)
treed48c50de25a534a1ad64f8c2e07e857b36db327c /arch/arm/mach-omap2/omap_hwmod.c
parentb88b5b7182b07ebdc1ab692b4fc6a10abfff208d (diff)
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: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 3a04c73ac03c..baadddf9aad4 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -648,10 +648,10 @@ static struct clockdomain *_get_clkdm(struct omap_hwmod *oh)
648 if (oh->clkdm) { 648 if (oh->clkdm) {
649 return oh->clkdm; 649 return oh->clkdm;
650 } else if (oh->_clk) { 650 } else if (oh->_clk) {
651 if (__clk_get_flags(oh->_clk) & CLK_IS_BASIC) 651 if (!omap2_clk_is_hw_omap(__clk_get_hw(oh->_clk)))
652 return NULL; 652 return NULL;
653 clk = to_clk_hw_omap(__clk_get_hw(oh->_clk)); 653 clk = to_clk_hw_omap(__clk_get_hw(oh->_clk));
654 return clk->clkdm; 654 return clk->clkdm;
655 } 655 }
656 return NULL; 656 return NULL;
657} 657}