Browse Source

[MIPS] Fix bcm1480 compile

Fix compilation for bcm1480, a hpt is only available on sb1250/bcm112x.

Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Thiemo Seufer 19 năm trước cách đây
mục cha
commit
b75d4c1d68
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      arch/mips/sibyte/swarm/setup.c

+ 2 - 0
arch/mips/sibyte/swarm/setup.c

@@ -72,8 +72,10 @@ const char *get_system_type(void)
 
 
 void __init swarm_time_init(void)
 void __init swarm_time_init(void)
 {
 {
+#if defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X)
 	/* Setup HPT */
 	/* Setup HPT */
 	sb1250_hpt_setup();
 	sb1250_hpt_setup();
+#endif
 }
 }
 
 
 void __init swarm_timer_setup(struct irqaction *irq)
 void __init swarm_timer_setup(struct irqaction *irq)