Commit 3d9f0327 authored by Kevin Hilman's avatar Kevin Hilman Committed by Paul Walmsley

ARM: OMAP4: hwmod: rename _enable_module to _omap4_enable_module()

_enable_module is specific to SoCs with PRCM interfaces similar to
that of the OMAP4, so rename it to be consistent with the
corresponding _omap4_disable_module.
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
[paul@pwsan.com: tweaked commit message]
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
parent 485802a6
...@@ -771,13 +771,13 @@ static void _disable_optional_clocks(struct omap_hwmod *oh) ...@@ -771,13 +771,13 @@ static void _disable_optional_clocks(struct omap_hwmod *oh)
} }
/** /**
* _enable_module - enable CLKCTRL modulemode on OMAP4 * _omap4_enable_module - enable CLKCTRL modulemode on OMAP4
* @oh: struct omap_hwmod * * @oh: struct omap_hwmod *
* *
* Enables the PRCM module mode related to the hwmod @oh. * Enables the PRCM module mode related to the hwmod @oh.
* No return value. * No return value.
*/ */
static void _enable_module(struct omap_hwmod *oh) static void _omap4_enable_module(struct omap_hwmod *oh)
{ {
/* The module mode does not exist prior OMAP4 */ /* The module mode does not exist prior OMAP4 */
if (cpu_is_omap24xx() || cpu_is_omap34xx()) if (cpu_is_omap24xx() || cpu_is_omap34xx())
...@@ -786,8 +786,8 @@ static void _enable_module(struct omap_hwmod *oh) ...@@ -786,8 +786,8 @@ static void _enable_module(struct omap_hwmod *oh)
if (!oh->clkdm || !oh->prcm.omap4.modulemode) if (!oh->clkdm || !oh->prcm.omap4.modulemode)
return; return;
pr_debug("omap_hwmod: %s: _enable_module: %d\n", pr_debug("omap_hwmod: %s: %s: %d\n",
oh->name, oh->prcm.omap4.modulemode); oh->name, __func__, oh->prcm.omap4.modulemode);
omap4_cminst_module_enable(oh->prcm.omap4.modulemode, omap4_cminst_module_enable(oh->prcm.omap4.modulemode,
oh->clkdm->prcm_partition, oh->clkdm->prcm_partition,
...@@ -1814,7 +1814,7 @@ static int _enable(struct omap_hwmod *oh) ...@@ -1814,7 +1814,7 @@ static int _enable(struct omap_hwmod *oh)
} }
_enable_clocks(oh); _enable_clocks(oh);
_enable_module(oh); _omap4_enable_module(oh);
r = _wait_target_ready(oh); r = _wait_target_ready(oh);
if (!r) { if (!r) {
......
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