Skip to content

Commit

Permalink
ARM: at91: remove useless init_time for DT-only SoCs
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Boris Brezillon authored and Nicolas Ferre committed Nov 10, 2014
1 parent 7d7ef54 commit b75d47b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions arch/arm/mach-at91/at91sam9g45.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
*/

#include <asm/system_misc.h>
#include <asm/irq.h>
#include <mach/cpu.h>
#include <mach/hardware.h>

Expand All @@ -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
7 changes: 0 additions & 7 deletions arch/arm/mach-at91/at91sam9rl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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

0 comments on commit b75d47b

Please sign in to comment.