]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/mach-vexpress/ct-ca9x4.c
ARM: 6472/1: vexpress ct-ca9x4: only set twd_base if local timers are being used
[net-next-2.6.git] / arch / arm / mach-vexpress / ct-ca9x4.c
index c2e405a9e0256141d62dfad2f359bfa7bac87555..fd25ccd7272f7045b24a193f4c025a84c3bca97b 100644 (file)
@@ -54,7 +54,9 @@ static struct map_desc ct_ca9x4_io_desc[] __initdata = {
 
 static void __init ct_ca9x4_map_io(void)
 {
+#ifdef CONFIG_LOCAL_TIMERS
        twd_base = MMIO_P2V(A9_MPCORE_TWD);
+#endif
        v2m_map_io(ct_ca9x4_io_desc, ARRAY_SIZE(ct_ca9x4_io_desc));
 }