From: Anders Berg <anders.b...@lsi.com> Remove some unneeded code from the timer init function. The clocksource and clockevent devices are all instansiated via clocksource_of_init().
Signed-off-by: Anders Berg <anders.b...@lsi.com> --- arch/arm/mach-axxia/axxia.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/arch/arm/mach-axxia/axxia.c b/arch/arm/mach-axxia/axxia.c index a8b213f..9ed7ce1 100644 --- a/arch/arm/mach-axxia/axxia.c +++ b/arch/arm/mach-axxia/axxia.c @@ -97,34 +97,14 @@ static void __init axxia_dt_init_irq(void) void __init axxia_dt_timer_init(void) { - const char *path; - struct device_node *node; - void __iomem *base; int is_sim; is_sim = of_find_compatible_node(NULL, NULL, "lsi,axm5516-sim") != NULL; axxia_init_clocks(is_sim); -#ifdef CONFIG_ARM_ARCH_TIMER of_clk_init(NULL); clocksource_of_init(); -#endif - - if (of_property_read_string(of_aliases, "timer", &path)) { - WARN_ON(1); - return; - } - - node = of_find_node_by_path(path); - if (WARN_ON(node == NULL)) - return; - - base = of_iomap(node, 0); - if (WARN_ON(base == NULL)) - return; - - sp804_clocksource_and_sched_clock_init(base, "axxia-timer0"); } static struct mmci_platform_data mmc_plat_data = { -- 1.7.9.5 -- _______________________________________________ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto