aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-10-01 19:40:57 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-10-01 19:40:57 +0000
commit0757fee42d9a0a5cc4f745c0c81a3c3af94d24c7 (patch)
tree7ed27b7a0dc467534d4e4b629ad074fdba58355f /target/linux/ar71xx
parent2e09669095067d1543c0deb56096a0eeb0f17b06 (diff)
downloadupstream-0757fee42d9a0a5cc4f745c0c81a3c3af94d24c7.tar.gz
upstream-0757fee42d9a0a5cc4f745c0c81a3c3af94d24c7.tar.bz2
upstream-0757fee42d9a0a5cc4f745c0c81a3c3af94d24c7.zip
ar71xx: use ar71xx_pci_fixup on ar71xx SoCs only
SVN-Revision: 17807
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c b/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c
index 711a109697..b2d36caa0e 100644
--- a/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c
+++ b/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c
@@ -38,6 +38,7 @@
static void __iomem *ar71xx_pcicfg_base;
static DEFINE_SPINLOCK(ar71xx_pci_lock);
+static int ar71xx_pci_fixup_enable;
static inline void ar71xx_pci_delay(void)
{
@@ -228,6 +229,9 @@ static void ar71xx_pci_fixup(struct pci_dev *dev)
{
u32 t;
+ if (!ar71xx_pci_fixup_enable)
+ return;
+
if (dev->bus->number != 0 || dev->devfn != 0)
return;
@@ -321,6 +325,7 @@ int __init ar71xx_pcibios_init(void)
/* clear bus errors */
(void)ar71xx_pci_be_handler(1);
+ ar71xx_pci_fixup_enable = 1;
register_pci_controller(&ar71xx_pci_controller);
return 0;