linux-mips
[Top] [All Lists]

[PATCH v3 08/34] mips/PCI: removed unused pci_probe configurability

To: Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: [PATCH v3 08/34] mips/PCI: removed unused pci_probe configurability
From: Bjorn Helgaas <bhelgaas@google.com>
Date: Wed, 07 Mar 2012 15:32:44 -0700
Cc: linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=+1Tg68MUrUdkYJBPf4zZzIhJOCahvnx2JOmPQ3BE2v4=; b=jV+gRFxUxQ2LdKfGf37aSgyV2gVsyAhqMajHTtuiV+jwfLTmS5BdB8XFQg2FKIfPGV ALX9QXxEPP0tF7PYdeUYaqAlTv01eru6AyZI8NvpsXbCzKOJvDjeQGVVoxHdnDK0MU75 U2TJlIHvBiZDxiJenKkTzgF8Ff6V68auurGRKy+8WArkU9O2sJf7wriqtsNehPKYuM/u N3TCHCM/wB+pDJrds2iVYTruTKvulgjOPT2Ani4D2BOvC7ERsd2MQpJsKd4BfoKs7T7A tpiCw+irU73bxJv5qWopJ90RC/Kf7CKkaPlJKT8Z46GfKv4/FUnmvgj+Te6QUPm8WfSR aIAQ==
In-reply-to: <20120307222436.25669.52282.stgit@bhelgaas.mtv.corp.google.com>
References: <20120307222436.25669.52282.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 v3 08/34] mips/PCI: removed unused pci_probe configurability, Bjorn Helgaas <=