linux-mips
[Top] [All Lists]

[PATCH] Remove never used pci_probe variable

To: linux-mips@linux-mips.org
Subject: [PATCH] Remove never used pci_probe variable
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Sat, 19 Apr 2008 00:34:35 +0900 (JST)
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Nobody overwrite pci_probe.  Remove it.  Also make
pcibios_assign_all_busses weak so that platform code can overwrite it.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 arch/mips/pci/pci.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 0bd93fb..7533e3f 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -21,10 +21,6 @@
  */
 int pci_probe_only;
 
-#define PCI_ASSIGN_ALL_BUSSES  1
-
-unsigned int pci_probe = PCI_ASSIGN_ALL_BUSSES;
-
 /*
  * The PCI controller list.
  */
@@ -222,9 +218,9 @@ void pcibios_set_master(struct pci_dev *dev)
        pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat);
 }
 
-unsigned int pcibios_assign_all_busses(void)
+unsigned int __weak pcibios_assign_all_busses(void)
 {
-       return (pci_probe & PCI_ASSIGN_ALL_BUSSES) ? 1 : 0;
+       return 1;
 }
 
 int __weak pcibios_plat_dev_init(struct pci_dev *dev)

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Remove never used pci_probe variable, Atsushi Nemoto <=