aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2011-05-05 14:05:21 +0000
committerHauke Mehrtens <hauke@openwrt.org>2011-05-05 14:05:21 +0000
commit580cad4b9b9620a30e6f29c3ac32501693c10c18 (patch)
treec448fe35965da34ed489819b78ac541fdbdf4710 /target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch
parentcf2a2e3ae2cc2b23c1d16a3ea7588e08e40b6fbe (diff)
downloadupstream-580cad4b9b9620a30e6f29c3ac32501693c10c18.tar.gz
upstream-580cad4b9b9620a30e6f29c3ac32501693c10c18.tar.bz2
upstream-580cad4b9b9620a30e6f29c3ac32501693c10c18.zip
brcm47xx: when detecting a ssb pci device without an own sprom write the sprom data from the platform device to the correct pointer.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26829 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch')
-rw-r--r--target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch b/target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch
index f63deacddf..4e88cf644d 100644
--- a/target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch
+++ b/target/linux/brcm47xx/patches-2.6.37/033-bcm47xx-register-fallback-callback.patch
@@ -15,7 +15,7 @@
}
}
-+int bcm47xx_get_sprom(struct ssb_bus *bus)
++int bcm47xx_get_sprom(struct ssb_bus *bus, struct ssb_sprom *out)
+{
+ char prefix[10];
+
@@ -23,7 +23,7 @@
+ snprintf(prefix, sizeof(prefix), "pci/%x/%x/",
+ bus->host_pci->bus->number + 1,
+ PCI_SLOT(bus->host_pci->devfn));
-+ bcm47xx_fill_sprom(&bus->sprom, prefix);
++ bcm47xx_fill_sprom(out, prefix);
+ return 0;
+ } else {
+ printk(KERN_WARNING "bcm47xx: unable to fill SPROM for given bustype.\n");