summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2018-02-14 08:27:41 -0800
committerTony Lindgren <tony@atomide.com>2018-02-14 08:27:41 -0800
commit60c99c7749f2a86e8891b003496fa8f6e985b8b5 (patch)
tree667db4fb327abd7d077797e0fb616a6592738d89 /arch
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
parent392ea5dd0ff265f7557405fcbdf35acd34cf4ab8 (diff)
downloadlwn-60c99c7749f2a86e8891b003496fa8f6e985b8b5.tar.gz
lwn-60c99c7749f2a86e8891b003496fa8f6e985b8b5.zip
Merge branch 'omap-for-v4.16/soc' into omap-for-v4.16/fixes
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 124f9af34a15..34156eca8e23 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -977,6 +977,9 @@ static int _enable_clocks(struct omap_hwmod *oh)
pr_debug("omap_hwmod: %s: enabling clocks\n", oh->name);
+ if (oh->flags & HWMOD_OPT_CLKS_NEEDED)
+ _enable_optional_clocks(oh);
+
if (oh->_clk)
clk_enable(oh->_clk);
@@ -985,9 +988,6 @@ static int _enable_clocks(struct omap_hwmod *oh)
clk_enable(os->_clk);
}
- if (oh->flags & HWMOD_OPT_CLKS_NEEDED)
- _enable_optional_clocks(oh);
-
/* The opt clocks are controlled by the device driver. */
return 0;