]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: omap2+: hwmod: drop CLK_IS_BASIC flag usage
authorTero Kristo <t-kristo@ti.com>
Thu, 4 Apr 2019 08:11:03 +0000 (11:11 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 25 Apr 2019 17:51:22 +0000 (10:51 -0700)
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>
arch/arm/mach-omap2/omap_hwmod.c

index 3a04c73ac03c372c6b2dff678ed90bdb369aaa62..baadddf9aad49eb44d9d0974e6b6e11c28fd661c 100644 (file)
@@ -648,10 +648,10 @@ static struct clockdomain *_get_clkdm(struct omap_hwmod *oh)
        if (oh->clkdm) {
                return oh->clkdm;
        } 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;
                clk = to_clk_hw_omap(__clk_get_hw(oh->_clk));
-               return  clk->clkdm;
+               return clk->clkdm;
        }
        return NULL;
 }