ARM: OMAP2+: Simplify code for clkdm_clock_enable and disable
authorTony Lindgren <tony@atomide.com>
Wed, 16 Oct 2019 15:04:54 +0000 (08:04 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 16 Oct 2019 15:23:26 +0000 (08:23 -0700)
commit21a18129edd773c7c75725af344f51faf00040e6
tree98206221e9aa096c04c6a76e07afeb6290226a80
parent645ad6f3ca450ecd30e79d168563d79448317674
ARM: OMAP2+: Simplify code for clkdm_clock_enable and disable

We can make clkdm_clk_enable() usable for clkdm_hwmod_enable() by
dropping the unused clock check, and drop _clkdm_clk_hwmod_enable().

And we can make clkdm_hwmod_disable() call clkdm_hwmod_disable() and drop
the duplicate code in clkdm_hwmod_disable().

Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clockdomain.c