All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] mtx-1: fix build failures when PCI is disabled
@ 2009-08-16 22:28 Florian Fainelli
  0 siblings, 0 replies; only message in thread
From: Florian Fainelli @ 2009-08-16 22:28 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, Manuel Lauss

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.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/alchemy/mtx-1/board_setup.c b/arch/mips/alchemy/mtx-1/board_setup.c
index cc32c69..c803732 100644
--- a/arch/mips/alchemy/mtx-1/board_setup.c
+++ b/arch/mips/alchemy/mtx-1/board_setup.c
@@ -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");
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-16 22:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-16 22:28 [PATCH 2/2] mtx-1: fix build failures when PCI is disabled Florian Fainelli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.