diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-03-31 17:15:43 +0200 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-05-16 06:34:54 +0200 |
commit | 81243651ba25c4418af26c3c6f1aeabb41f734e0 (patch) | |
tree | 2d6145500089f1aca81927a58d32346c1c599934 /arch/arm/mach-omap2/prm_common.c | |
parent | ARM: OMAP2+: PRM: remove unnecessary cpu_is_XXX calls from prm_init / exit (diff) | |
download | linux-81243651ba25c4418af26c3c6f1aeabb41f734e0.tar.xz linux-81243651ba25c4418af26c3c6f1aeabb41f734e0.zip |
ARM: OMAP3/4: PRM: provide io chain reconfig function through irq setup
This helps to make the PRM registration modular, and also gets rid of a
cpu type check done later.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm_common.c')
-rw-r--r-- | arch/arm/mach-omap2/prm_common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index b4c4ab9c8044..bd746fc05d18 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c @@ -330,12 +330,7 @@ int omap_prcm_register_chain_handler(struct omap_prcm_irq_setup *irq_setup) if (of_have_populated_dt()) { int irq = omap_prcm_event_to_irq("io"); - if (cpu_is_omap34xx()) - omap_pcs_legacy_init(irq, - omap3xxx_prm_reconfigure_io_chain); - else - omap_pcs_legacy_init(irq, - omap44xx_prm_reconfigure_io_chain); + omap_pcs_legacy_init(irq, irq_setup->reconfigure_io_chain); } return 0; |