diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2014-11-10 02:31:49 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2014-11-19 17:23:59 -0500 |
commit | 440ae45119e92777899d8201b4c8e05aa8d0d88a (patch) | |
tree | 57cca55c021caa81ff6493a41f1bf62f7e2c0a59 /arch/arm/mach-at91/at91sam9rl.c | |
parent | 8ecb3ccb744825b16591b8c86bb8653d85893052 (diff) |
ARM: at91: remove useless init_time for DT-only SoCs
Commits bcf8c7e7703bb2bbde66bec26a81fed4be9cd1d4 and
4bf7753b8ab7c704ca864b1653367ea9cfe68a25 introduced compilation errors
("error: 'NR_IRQS_LEGACY' undeclared (first use in this function)") because
they remove the asm/irq.h inclusion while the init_time function needs it
for the NR_IRQS_LEGACY definition.
In the other hand, the point of these commits is to remove board file
support, and init_time is only needed when booting non-DT boards, we can
thus safely remove init_time functions.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9rl.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9rl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/mach-at91/at91sam9rl.c b/arch/arm/mach-at91/at91sam9rl.c index 97efb2ef9fb4..f25b9aec9c50 100644 --- a/arch/arm/mach-at91/at91sam9rl.c +++ b/arch/arm/mach-at91/at91sam9rl.c | |||
@@ -47,13 +47,7 @@ static void __init at91sam9rl_initialize(void) | |||
47 | at91_sysirq_mask_rtt(AT91SAM9RL_BASE_RTT); | 47 | at91_sysirq_mask_rtt(AT91SAM9RL_BASE_RTT); |
48 | } | 48 | } |
49 | 49 | ||
50 | static void __init at91sam9rl_init_time(void) | ||
51 | { | ||
52 | at91sam926x_pit_init(NR_IRQS_LEGACY + AT91_ID_SYS); | ||
53 | } | ||
54 | |||
55 | AT91_SOC_START(at91sam9rl) | 50 | AT91_SOC_START(at91sam9rl) |
56 | .map_io = at91sam9rl_map_io, | 51 | .map_io = at91sam9rl_map_io, |
57 | .init = at91sam9rl_initialize, | 52 | .init = at91sam9rl_initialize, |
58 | .init_time = at91sam9rl_init_time, | ||
59 | AT91_SOC_END | 53 | AT91_SOC_END |