@@ -90,6 +90,6 @@ DT_MACHINE_START(KZM9D_DT, "kzm9d")
.init_irq = emev2_init_irq,
.init_machine = kzm9d_add_standard_devices,
.init_late = shmobile_init_late,
- .init_time = shmobile_timer_init,
+ .init_time = emev2_timer_init,
.dt_compat = kzm9d_boards_compat_dt,
MACHINE_END
@@ -5,6 +5,7 @@ extern void emev2_map_io(void);
extern void emev2_init_irq(void);
extern void emev2_add_early_devices(void);
extern void emev2_add_standard_devices(void);
+extern void emev2_timer_init(void);
extern void emev2_clock_init(void);
extern void emev2_set_boot_vector(unsigned long value);
@@ -395,8 +395,6 @@ static struct platform_device *emev2_lat
void __init emev2_add_standard_devices(void)
{
- emev2_clock_init();
-
platform_add_devices(emev2_early_devices,
ARRAY_SIZE(emev2_early_devices));
@@ -404,6 +402,12 @@ void __init emev2_add_standard_devices(v
ARRAY_SIZE(emev2_late_devices));
}
+void __init emev2_timer_init(void)
+{
+ emev2_clock_init();
+ shmobile_timer_init();
+}
+
static void __init emev2_init_delay(void)
{
shmobile_setup_delay(533, 1, 3); /* Cortex-A9 @ 533MHz */