summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authornoz <noz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-22 22:38:09 +0000
committernoz <noz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-22 22:38:09 +0000
commit239f351507c44e80d175e3af416dfeffc2d463f0 (patch)
treeb9ee7947110b5a8cc7f3a9e5f6c754e4e4928b48 /target/linux
parentff38bbf65ab2c500c3db8ff13461393405abe5c9 (diff)
Fix brcm43xx build for PCI-less systems (patch from Michael Buesch)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7711 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/brcm47xx-2.6/patches-2.6.22/220-ssb_pci_deps.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/target/linux/brcm47xx-2.6/patches-2.6.22/220-ssb_pci_deps.patch b/target/linux/brcm47xx-2.6/patches-2.6.22/220-ssb_pci_deps.patch
new file mode 100644
index 0000000000..231c154dc3
--- /dev/null
+++ b/target/linux/brcm47xx-2.6/patches-2.6.22/220-ssb_pci_deps.patch
@@ -0,0 +1,41 @@
+From: Michael Buesch <mb@bu3sch.de>
+Date: Fri, 22 Jun 2007 22:13:00 +0000 (+0200)
+Subject: bcm43xx-mac80211: Fix build for PCI-less systems.
+X-Git-Url: http://bu3sch.de/gitweb?p=wireless-dev.git;a=commitdiff_plain;h=edd2b9cc18cf2eb15ea35d34af556b614f07114b
+
+bcm43xx-mac80211: Fix build for PCI-less systems.
+
+pci_iomap() and pci_iounmap() are not available if PCI
+support is disabled.
+
+Signed-off-by: Michael Buesch <mb@bu3sch.de>
+---
+
+diff --git a/drivers/ssb/scan.c b/drivers/ssb/scan.c
+index feaf1e5..b5d909c 100644
+--- a/drivers/ssb/scan.c
++++ b/drivers/ssb/scan.c
+@@ -202,7 +202,11 @@ void ssb_iounmap(struct ssb_bus *bus)
+ iounmap(bus->mmio);
+ break;
+ case SSB_BUSTYPE_PCI:
++#ifdef CONFIG_SSB_PCIHOST
+ pci_iounmap(bus->host_pci, bus->mmio);
++#else
++ assert(0); /* Can't reach this code. */
++#endif
+ break;
+ }
+ bus->mmio = NULL;
+@@ -222,7 +226,11 @@ static void __iomem * ssb_ioremap(struct ssb_bus *bus,
+ mmio = ioremap(baseaddr, SSB_CORE_SIZE);
+ break;
+ case SSB_BUSTYPE_PCI:
++#ifdef CONFIG_SSB_PCIHOST
+ mmio = pci_iomap(bus->host_pci, 0, ~0UL);
++#else
++ assert(0); /* Can't reach this code. */
++#endif
+ break;
+ }
+