diff options
author | Kevin Hilman <khilman@ti.com> | 2012-06-18 12:12:23 -0600 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-06-18 12:12:23 -0600 |
commit | 9ebfd285371835b1c0243d15aaacd72d5def76f8 (patch) | |
tree | ff0f3674a11b5a8e23c9eb4e800ca294bd5a7fcc /arch/arm/plat-omap | |
parent | 3d9f032724e72851c6de38d026b2417501a2f240 (diff) | |
download | op-kernel-dev-9ebfd285371835b1c0243d15aaacd72d5def76f8.zip op-kernel-dev-9ebfd285371835b1c0243d15aaacd72d5def76f8.tar.gz |
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/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_hwmod.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_hwmod.h b/arch/arm/plat-omap/include/plat/omap_hwmod.h index c835b71..a8ecc53 100644 --- a/arch/arm/plat-omap/include/plat/omap_hwmod.h +++ b/arch/arm/plat-omap/include/plat/omap_hwmod.h @@ -629,6 +629,8 @@ int omap_hwmod_no_setup_reset(struct omap_hwmod *oh); int omap_hwmod_pad_route_irq(struct omap_hwmod *oh, int pad_idx, int irq_idx); +extern void __init omap_hwmod_init(void); + /* * Chip variant-specific hwmod init routines - XXX should be converted * to use initcalls once the initial boot ordering is straightened out |