linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 2/2] mtx-1: fix build failures when PCI is disabled
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 17 Aug 2009 00:28:30 +0200
Cc: linux-mips@linux-mips.org, Manuel Lauss <manuel.lauss@googlemail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=9ymzJ8vMW8QIOT9DCBg5i4qS14k6TMsy8kXQnxXpP2M=; b=JfXZTwR/AP5JRoMtS0v2xWF/j1atmSJeOAXWOKuQi7xgrTBTUyjbTX+pF/fSuooRdc 21RxSuruOKwmqTZACYerSzHjjNe3/qj52lvRrzgBM0dZyBYjfcO5Yzekpw3fh45ibo6S 8pi5l+RjbpkQQI7YakeUX4DeMR1ImGueDmIDw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=PW7jfb3j1Dvw6Ce99QJ25+wOVQilW6hNfKLPQCpI7OI9YQtm8/2/PzEVVP2+0vB8ha dzPWlfIG8J90eshx1NZGa877+Z/p0L1hCYxo2lFniDDh2Fzoc68ERvO9h11yYHtEB5dG Pj/jZsviL4UrJj9zqe7wdajdYsDIuEzEjenMA=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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");
 }

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2/2] mtx-1: fix build failures when PCI is disabled, Florian Fainelli <=