]> xenbits.xensource.com Git - people/sstabellini/linux-pvhvm-deprecated.git/commitdiff
arm/v2m: initialize arch_timers even if v2m_timer is not present
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 1 Aug 2012 16:06:38 +0000 (16:06 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 1 Aug 2012 16:06:38 +0000 (16:06 +0000)
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
CC: Russell King <linux@arm.linux.org.uk>
arch/arm/mach-vexpress/v2m.c

index 37608f22ee318a903a79d33ad97678ce71244f23..4e567f71690eca39897ae65a25c72b12e51358f9 100644 (file)
@@ -621,16 +621,17 @@ static void __init v2m_dt_timer_init(void)
 
        v2m_clk_init();
 
-       err = of_property_read_string(of_aliases, "arm,v2m_timer", &path);
-       if (WARN_ON(err))
-               return;
-       node = of_find_node_by_path(path);
-       v2m_sp804_init(of_iomap(node, 0), irq_of_parse_and_map(node, 0));
        if (arch_timer_of_register() != 0)
                twd_local_timer_of_register();
 
        if (arch_timer_sched_clock_init() != 0)
                versatile_sched_clock_init(v2m_sysreg_base + V2M_SYS_24MHZ, 24000000);
+
+       err = of_property_read_string(of_aliases, "arm,v2m_timer", &path);
+       if (WARN_ON(err))
+               return;
+       node = of_find_node_by_path(path);
+       v2m_sp804_init(of_iomap(node, 0), irq_of_parse_and_map(node, 0));
 }
 
 static struct sys_timer v2m_dt_timer = {