summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
diff options
context:
space:
mode:
authorKevin Hilman2012-06-18 20:12:23 +0200
committerPaul Walmsley2012-06-18 20:12:23 +0200
commit9ebfd285371835b1c0243d15aaacd72d5def76f8 (patch)
treeff0f3674a11b5a8e23c9eb4e800ca294bd5a7fcc /arch/arm/mach-omap2/omap_hwmod_44xx_data.c
parentARM: OMAP4: hwmod: rename _enable_module to _omap4_enable_module() (diff)
downloadkernel-qcow2-linux-9ebfd285371835b1c0243d15aaacd72d5def76f8.tar.gz
kernel-qcow2-linux-9ebfd285371835b1c0243d15aaacd72d5def76f8.tar.xz
kernel-qcow2-linux-9ebfd285371835b1c0243d15aaacd72d5def76f8.zip
ARM: OMAP2+: hwmod: use init-time function ptrs for enable/disable module
The enable/disable module functions are specific to SoCs with OMAP4-class PRCM. Rather than use cpu_is* checks at runtime inside the enable/disable module functions, use cpu_is at init time to initialize function pointers only for SoCs that need them. NOTE: the cpu_is* check for _enable_module was different than the one for _disable_module, and this patch uses cpu_is_omap44xx() for both. Signed-off-by: Kevin Hilman <khilman@ti.com> [paul@pwsan.com: moved soc_ops function pointers to be per-kernel rather than per-hwmod since they do not vary by hwmod; added kerneldoc] Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_44xx_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_44xx_data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
index 950454a3fa31..d3c48dc26af1 100644
--- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -6144,6 +6144,7 @@ static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
int __init omap44xx_hwmod_init(void)
{
+ omap_hwmod_init();
return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
}