Skip to contentSkip to conversation

ARM: at91: remove useless init_time for DT-only SoCs

PATCH New Boris Brezillon 2 participants 2 messages Nov 10, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: at91: remove useless init_time for DT-only SoCs

init_time is only needed when booting non-DT boards, we can thus safely remove init_time functions.

---
Changes since v1:
- rebased on arm-soc branch

 arch/arm/mach-at91/at91sam9g45.c | 7 -------
 arch/arm/mach-at91/at91sam9rl.c  | 7 -------
 2 files changed, 14 deletions(-)
arch/arm/mach-at91/at91sam9g45.c +0 -7
index 042f7c6..2ad0db4 100644
@@ -11,7 +11,6 @@
  */
 
 #include <asm/system_misc.h>
-#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/hardware.h>
 
@@ -35,13 +34,7 @@ static void __init at91sam9g45_initialize(void)
 	at91_sysirq_mask_rtt(AT91SAM9G45_BASE_RTT);
 }
 
-static void __init at91sam9g45_init_time(void)
-{
-	at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
-}
-
 AT91_SOC_START(at91sam9g45)
 	.map_io = at91sam9g45_map_io,
 	.init = at91sam9g45_initialize,
-	.init_time = at91sam9g45_init_time,
 AT91_SOC_END
arch/arm/mach-at91/at91sam9rl.c +0 -7
index 97efb2e..bd7e568 100644
@@ -10,7 +10,6 @@
  */
 
 #include <asm/system_misc.h>
-#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/at91_dbgu.h>
 #include <mach/hardware.h>
@@ -47,13 +46,7 @@ static void __init at91sam9rl_initialize(void)
 	at91_sysirq_mask_rtt(AT91SAM9RL_BASE_RTT);
 }
 
-static void __init at91sam9rl_init_time(void)
-{
-	at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
-}
-
 AT91_SOC_START(at91sam9rl)
 	.map_io = at91sam9rl_map_io,
 	.init = at91sam9rl_initialize,
-	.init_time = at91sam9rl_init_time,
 AT91_SOC_END
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 ARM: at91: remove useless init_time for DT-only SoCs

On 10/11/2014 10:32, Boris Brezillon :

Quoted 4 lines

init_time is only needed when booting non-DT boards, we can thus safely remove init_time functions.

Thanks Boris.

Olof, can you please take this patch on top of the one you wrote to fix at91 cleanup branch ([PATCH] ARM: at91: fix build breakage due to legacy board removals) ?

I integrate also Olof's patch and this one on top of my at91-3.19-cleanup branch to be able to stack more material and send it to arm-soc afterwards.

Thanks, bye.

Quoted 61 lines

---
Changes since v1:
- rebased on arm-soc branch

 arch/arm/mach-at91/at91sam9g45.c | 7 -------
 arch/arm/mach-at91/at91sam9rl.c  | 7 -------
 2 files changed, 14 deletions(-)
arch/arm/mach-at91/at91sam9g45.c +0 -7
index 042f7c6..2ad0db4 100644
@@ -11,7 +11,6 @@
  */
 
 #include <asm/system_misc.h>
-#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/hardware.h>
 
@@ -35,13 +34,7 @@ static void __init at91sam9g45_initialize(void)
 	at91_sysirq_mask_rtt(AT91SAM9G45_BASE_RTT);
 }
 
-static void __init at91sam9g45_init_time(void)
-{
-	at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
-}
-
 AT91_SOC_START(at91sam9g45)
 	.map_io = at91sam9g45_map_io,
 	.init = at91sam9g45_initialize,
-	.init_time = at91sam9g45_init_time,
 AT91_SOC_END
arch/arm/mach-at91/at91sam9rl.c +0 -7
index 97efb2e..bd7e568 100644
@@ -10,7 +10,6 @@
  */
 
 #include <asm/system_misc.h>
-#include <asm/irq.h>
 #include <mach/cpu.h>
 #include <mach/at91_dbgu.h>
 #include <mach/hardware.h>
@@ -47,13 +46,7 @@ static void __init at91sam9rl_initialize(void)
 	at91_sysirq_mask_rtt(AT91SAM9RL_BASE_RTT);
 }
 
-static void __init at91sam9rl_init_time(void)
-{
-	at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS);
-}
-
 AT91_SOC_START(at91sam9rl)
 	.map_io = at91sam9rl_map_io,
 	.init = at91sam9rl_initialize,
-	.init_time = at91sam9rl_init_time,
 AT91_SOC_END
Signature · 1 line
Nicolas Ferre