Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 440ae451 authored by Boris Brezillon's avatar Boris Brezillon Committed by Arnd Bergmann
Browse files

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



Commits bcf8c7e7 and
4bf7753b 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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 8ecb3ccb
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -35,13 +35,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
+0 −6
Original line number Diff line number Diff line
@@ -47,13 +47,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