Skip to contentSkip to conversation

mtx-1: fix build failures when PCI is disabled

PATCH In review Florian Fainelli 1 participant 1 message Aug 16, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 mtx-1: fix build failures when PCI is disabled

When PCI is disabled the board_pci_idsel symbol cannot be resolved since it is declared in arch/mips/pci/pci-au1000.c which is not compiled.

---

arch/mips/alchemy/mtx-1/board_setup.c +2 -0
index cc32c69..c803732 100644
@@ -85,7 +85,9 @@ void __init board_setup(void)
 	alchemy_gpio_direction_output(211, 1);	/* green on */
 	alchemy_gpio_direction_output(212, 0);	/* red off */
 
+#ifdef CONFIG_PCI
 	board_pci_idsel = mtx1_pci_idsel;
+#endif
 
 	printk(KERN_INFO "4G Systems MTX-1 Board\n");
 }