linux-mips
[Top] [All Lists]

[PATCH v2 08/12] mips/PCI: removed unused pci_probe configurability

To: linux-pci@vger.kernel.org
Subject: [PATCH v2 08/12] mips/PCI: removed unused pci_probe configurability
From: Bjorn Helgaas <bhelgaas@google.com>
Date: Thu, 23 Feb 2012 12:43:43 -0700
Authentication-results: mr.google.com; spf=pass (google.com: domain of bhelgaas@google.com designates 10.14.186.9 as permitted sender) smtp.mail=bhelgaas@google.com; dkim=pass header.i=bhelgaas@google.com
Cc: linux-arch@vger.kernel.org, linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=gamma; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=+1Tg68MUrUdkYJBPf4zZzIhJOCahvnx2JOmPQ3BE2v4=; b=e/OSopWfcq4X8sQYJymOIFEaB/6pemq5TMiwbRUlf4rgJ4FTsmyR2QxR7hiA2BNTxf qgT5ksM5c4M1akN0lGK53Q4tSZ6nd5Ojg9Nj7zlJ4BGCHbbJKuAEwL4xj2KqwIMfIIPc iWznHEO0AeN8HYx37+eANlra2kZncBDJ8LiKU=
In-reply-to: <20120223194209.20708.54480.stgit@bhelgaas.mtv.corp.google.com>
References: <20120223194209.20708.54480.stgit@bhelgaas.mtv.corp.google.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: StGit/0.15
We never assign anything other than PCI_ASSIGN_ALL_BUSSES to pci_probe,
so just remove the indirection.  If configurability is required in the
future, please use the pci_flags/PCI_REASSIGN_ALL_BUS functionality
as is done for powerpc.

CC: Ralf Baechle <ralf@linux-mips.org>
CC: linux-mips@linux-mips.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 arch/mips/pci/pci.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
index 2a11045..19f6d19 100644
--- a/arch/mips/pci/pci.c
+++ b/arch/mips/pci/pci.c
@@ -24,10 +24,6 @@
  * assignments.
  */
 
-#define PCI_ASSIGN_ALL_BUSSES  1
-
-unsigned int pci_probe = PCI_ASSIGN_ALL_BUSSES;
-
 /*
  * The PCI controller list.
  */
@@ -238,7 +234,7 @@ static int pcibios_enable_resources(struct pci_dev *dev, 
int mask)
 
 unsigned int pcibios_assign_all_busses(void)
 {
-       return (pci_probe & PCI_ASSIGN_ALL_BUSSES) ? 1 : 0;
+       return 1;
 }
 
 int pcibios_enable_device(struct pci_dev *dev, int mask)


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH v2 08/12] mips/PCI: removed unused pci_probe configurability, Bjorn Helgaas <=