ARM: OMAP4+: PRM: move omap_prm_base_init under OMAP4 PRM driver
authorTero Kristo <t-kristo@ti.com>
Thu, 6 Nov 2014 12:34:32 +0000 (14:34 +0200)
committerTero Kristo <t-kristo@ti.com>
Wed, 25 Mar 2015 09:03:40 +0000 (11:03 +0200)
There is no need to call this separately from io.c, rather this can be
done commonly under the PRM driver.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
arch/arm/mach-omap2/io.c
arch/arm/mach-omap2/prm44xx.c

index f504f7157cbee6c2f144a681b788cdd4c6287be1..5569c2f63acfa9c997a6673912761c77c09d2e55 100644 (file)
@@ -623,7 +623,6 @@ void __init am43xx_init_early(void)
                                  NULL);
        omap2_set_globals_prm(AM33XX_L4_WK_IO_ADDRESS(AM43XX_PRCM_BASE));
        omap2_set_globals_cm(AM33XX_L4_WK_IO_ADDRESS(AM43XX_PRCM_BASE), NULL);
-       omap_prm_base_init();
        omap_cm_base_init();
        omap3xxx_check_revision();
        am33xx_check_features();
@@ -654,7 +653,6 @@ void __init omap4430_init_early(void)
        omap2_set_globals_cm(OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE),
                             OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE));
        omap2_set_globals_prcm_mpu(OMAP2_L4_IO_ADDRESS(OMAP4430_PRCM_MPU_BASE));
-       omap_prm_base_init();
        omap_cm_base_init();
        omap4xxx_check_revision();
        omap4xxx_check_features();
@@ -690,7 +688,6 @@ void __init omap5_init_early(void)
                             OMAP2_L4_IO_ADDRESS(OMAP54XX_CM_CORE_BASE));
        omap2_set_globals_prcm_mpu(OMAP2_L4_IO_ADDRESS(OMAP54XX_PRCM_MPU_BASE));
        omap4_pm_init_early();
-       omap_prm_base_init();
        omap_cm_base_init();
        omap44xx_prm_init();
        omap5xxx_check_revision();
@@ -722,7 +719,6 @@ void __init dra7xx_init_early(void)
                             OMAP2_L4_IO_ADDRESS(OMAP54XX_CM_CORE_BASE));
        omap2_set_globals_prcm_mpu(OMAP2_L4_IO_ADDRESS(OMAP54XX_PRCM_MPU_BASE));
        omap4_pm_init_early();
-       omap_prm_base_init();
        omap_cm_base_init();
        omap44xx_prm_init();
        dra7xxx_check_revision();
index 1af0137e82837b7e1734fc1be2c3fb23bea54ecc..6f647f6984679890ac7173e799f0ba6d2c8b19a5 100644 (file)
@@ -705,6 +705,8 @@ static struct prm_ll_data omap44xx_prm_ll_data = {
 
 int __init omap44xx_prm_init(void)
 {
+       omap_prm_base_init();
+
        if (cpu_is_omap44xx() || soc_is_omap54xx() || soc_is_dra7xx())
                prm_features |= PRM_HAS_IO_WAKEUP;