arm: omap2: timer: always define omap4_local_timer_init
Subsystems (3)
PATCH 1/1 arm: omap2: timer: always define omap4_local_timer_init
omap4_local_timer_init() can be used by other platforms as is. At least AM437x wants to use it. Instead of making omap4-only and providing a stub for builds without OMAP4, we can just always define that function.
--- arch/arm/mach-omap2/timer.c | 9 --------- 1 file changed, 9 deletions(-)
arch/arm/mach-omap2/timer.c +0 -9
@@ -642,20 +642,11 @@ static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon", 2, "sys_clkin_ck", NULL);#endif -#ifdef CONFIG_ARCH_OMAP4 -#ifdef CONFIG_HAVE_ARM_TWD void __init omap4_local_timer_init (void ) {omap4_sync32k_timer_init ();clocksource_of_init (); } -#else -void __init omap4_local_timer_init (void ) -{ -omap4_sync32k_timer_init (); -} -#endif /* CONFIG_HAVE_ARM_TWD */ -#endif /* CONFIG_ARCH_OMAP4 */ #if defined(CONFIG_SOC_OMAP5 ) || defined(CONFIG_SOC_DRA7XX )void __init omap5_realtime_timer_init (void )
Signature · 1 line
2.5.0.GIT
PATCH 1/1 arm: omap2: timer: always define omap4_local_timer_init
Quoted 28 lines · Felipe Balbi
omap4_local_timer_init()can be used by other platforms as is. At least AM437x wants to use it. Instead of making omap4-only and providing a stub for builds without OMAP4, we can just always define that function.Reported-by Nishanth Menon <[email protected]>Signed-off-by Felipe Balbi <[email protected]>--- arch/arm/mach-omap2/timer.c | 9 --------- 1 file changed, 9 deletions(-)arch/arm/mach-omap2/timer.c +0
-2@@ -642,20 +642,11 @@ static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon", 2, "sys_clkin_ck", NULL);#endif -#ifdef CONFIG_ARCH_OMAP4 -#ifdef CONFIG_HAVE_ARM_TWD void __init omap4_local_timer_init (void ) {omap4_sync32k_timer_init ();clocksource_of_init (); }
arch/arm/mach-omap2/timer.c static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon", · line 652
Quoted 10 lines
arch/arm/mach-omap2/timer.c +0
-7-#else -void __init omap4_local_timer_init (void ) -{ -omap4_sync32k_timer_init (); -} -#endif /* CONFIG_HAVE_ARM_TWD */ -#endif /* CONFIG_ARCH_OMAP4 */ #if defined(CONFIG_SOC_OMAP5 ) || defined(CONFIG_SOC_DRA7XX )void __init omap5_realtime_timer_init (void )
I am a little confused if this will build in a am437xx only build.
#define OMAP_SYS_32K_TIMER_INIT(name, clkev_nr, clkev_src, clkev_prop, \clksrc_nr, clksrc_src, clksrc_prop) \
void __init omap##name##_sync32k_timer_init(void) \
Would you like to consider this for OMAP4 only build as well?
#if defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_SOC_OMAP5) || \
defined(CONFIG_SOC_DRA7XX)
static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon",
2, "sys_clkin_ck", NULL);
#endif
Signature · 2 lines
Regards, Nishanth Menon
PATCH 1/1 arm: omap2: timer: always define omap4_local_timer_init
Quoted 45 lines · Nishanth Menon
Quoted 28 lines · Felipe Balbi
omap4_local_timer_init()can be used by other platforms as is. At least AM437x wants to use it. Instead of making omap4-only and providing a stub for builds without OMAP4, we can just always define that function.Reported-by Nishanth Menon <[email protected]>Signed-off-by Felipe Balbi <[email protected]>--- arch/arm/mach-omap2/timer.c | 9 --------- 1 file changed, 9 deletions(-)arch/arm/mach-omap2/timer.c +0
-2@@ -642,20 +642,11 @@ static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon", 2, "sys_clkin_ck", NULL);#endif -#ifdef CONFIG_ARCH_OMAP4 -#ifdef CONFIG_HAVE_ARM_TWD void __init omap4_local_timer_init (void ) {omap4_sync32k_timer_init ();clocksource_of_init (); }arch/arm/mach-omap2/timer.c static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon", · line 652
Quoted 10 lines
arch/arm/mach-omap2/timer.c +0
-7-#else -void __init omap4_local_timer_init (void ) -{ -omap4_sync32k_timer_init (); -} -#endif /* CONFIG_HAVE_ARM_TWD */ -#endif /* CONFIG_ARCH_OMAP4 */ #if defined(CONFIG_SOC_OMAP5 ) || defined(CONFIG_SOC_DRA7XX )void __init omap5_realtime_timer_init (void )I am a little confused if this will build in a am437xx only build.
#define OMAP_SYS_32K_TIMER_INIT(name,
clkev_nr,clkev_src,clkev_prop, \clksrc_nr,clksrc_src,clksrc_prop) \
void__initomap##name##_sync32k_timer_init(void) \
Quoted 8 lines
Would you like to consider this for OMAP4 only build as well?
#if
defined(CONFIG_ARCH_OMAP4)||defined(CONFIG_SOC_OMAP5)|| \
defined(CONFIG_SOC_DRA7XX)
static OMAP_SYS_32K_TIMER_INIT(4, 1, "timer_32k_ck", "ti,timer-alwon",2, "sys_clkin_ck", NULL);#endif
heh, more of the ifdeferry to drop. Okay, I'll respin this
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150928/40131357/attachment.sig>