Message ID | 1377598305-15539-2-git-send-email-rnayak@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 08/27/2013 05:11 AM, Rajendra Nayak wrote: > Remove the empty am33xx_sram_init() function. > > Signed-off-by: Rajendra Nayak <rnayak@ti.com> > --- > arch/arm/mach-omap2/sram.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/arch/arm/mach-omap2/sram.c b/arch/arm/mach-omap2/sram.c > index 4bd0968..305fc2b 100644 > --- a/arch/arm/mach-omap2/sram.c > +++ b/arch/arm/mach-omap2/sram.c > @@ -285,11 +285,6 @@ static inline int omap34xx_sram_init(void) > } > #endif /* CONFIG_ARCH_OMAP3 */ > > -static inline int am33xx_sram_init(void) > -{ > - return 0; > -} > - > int __init omap_sram_init(void) > { > omap_detect_sram(); > @@ -299,8 +294,6 @@ int __init omap_sram_init(void) > omap242x_sram_init(); > else if (cpu_is_omap2430()) > omap243x_sram_init(); > - else if (soc_is_am33xx()) > - am33xx_sram_init(); > else if (cpu_is_omap34xx()) > omap34xx_sram_init(); > > Suspend resume for AM33xx as of right now uses this function. This patch [1] uses this function to push the low-level suspend code to sram, it was added here to be consistent with other platforms that utilize the same type of functionality (omap34xx). Regards, Dave [1] http://marc.info/?l=linux-omap&m=137581164813160&w=2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tuesday 27 August 2013 09:36 PM, Dave Gerlach wrote: > On 08/27/2013 05:11 AM, Rajendra Nayak wrote: >> Remove the empty am33xx_sram_init() function. >> >> Signed-off-by: Rajendra Nayak <rnayak@ti.com> >> --- >> arch/arm/mach-omap2/sram.c | 7 ------- >> 1 file changed, 7 deletions(-) >> >> diff --git a/arch/arm/mach-omap2/sram.c b/arch/arm/mach-omap2/sram.c >> index 4bd0968..305fc2b 100644 >> --- a/arch/arm/mach-omap2/sram.c >> +++ b/arch/arm/mach-omap2/sram.c >> @@ -285,11 +285,6 @@ static inline int omap34xx_sram_init(void) >> } >> #endif /* CONFIG_ARCH_OMAP3 */ >> >> -static inline int am33xx_sram_init(void) >> -{ >> - return 0; >> -} >> - >> int __init omap_sram_init(void) >> { >> omap_detect_sram(); >> @@ -299,8 +294,6 @@ int __init omap_sram_init(void) >> omap242x_sram_init(); >> else if (cpu_is_omap2430()) >> omap243x_sram_init(); >> - else if (soc_is_am33xx()) >> - am33xx_sram_init(); >> else if (cpu_is_omap34xx()) >> omap34xx_sram_init(); >> >> > > Suspend resume for AM33xx as of right now uses this function. This patch [1] uses this function to push the low-level suspend code to sram, it was added here to be consistent with other platforms that utilize the same type of functionality (omap34xx). Right, but if you look at patch 2/2 in the series, that basically moves all OMAP DT only platforms from using legacy OMAP private apis to push code/manage sram to using the generic gen_pool apis to manage sram. Can you look at how you can use gen_pool for am33xx instead of the way omap3 does it, since we want to completely get rid of the internal sram management apis (or atleast have them only for legacy non-DT OMAP platforms). > > Regards, > Dave > > [1] http://marc.info/?l=linux-omap&m=137581164813160&w=2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-omap2/sram.c b/arch/arm/mach-omap2/sram.c index 4bd0968..305fc2b 100644 --- a/arch/arm/mach-omap2/sram.c +++ b/arch/arm/mach-omap2/sram.c @@ -285,11 +285,6 @@ static inline int omap34xx_sram_init(void) } #endif /* CONFIG_ARCH_OMAP3 */ -static inline int am33xx_sram_init(void) -{ - return 0; -} - int __init omap_sram_init(void) { omap_detect_sram(); @@ -299,8 +294,6 @@ int __init omap_sram_init(void) omap242x_sram_init(); else if (cpu_is_omap2430()) omap243x_sram_init(); - else if (soc_is_am33xx()) - am33xx_sram_init(); else if (cpu_is_omap34xx()) omap34xx_sram_init();
Remove the empty am33xx_sram_init() function. Signed-off-by: Rajendra Nayak <rnayak@ti.com> --- arch/arm/mach-omap2/sram.c | 7 ------- 1 file changed, 7 deletions(-)