The SPROM is initialized in bcm47xx_fill_sprom, so move the call to 
bcm47xx_fill_sprom_ethernet after it.

Signed-off-by: Nathan Hintz <nlhi...@hotmail.com>

Index: 
target/linux/brcm47xx/patches-3.2/199-MIPS-BCM47XX-provide-sprom-to-bcma-bus.patch
===================================================================
--- 
target/linux/brcm47xx/patches-3.2/199-MIPS-BCM47XX-provide-sprom-to-bcma-bus.patch
  (revision 30770)
+++ 
target/linux/brcm47xx/patches-3.2/199-MIPS-BCM47XX-provide-sprom-to-bcma-bus.patch
  (working copy)
@@ -66,13 +66,13 @@
 +              bcm47xx_fill_sprom(out, prefix);
 +              return 0;
 +      } else if (bus->hosttype == BCMA_HOSTTYPE_SOC) {
-+              bcm47xx_fill_sprom_ethernet(out, NULL);
 +              core = bcma_find_core(bus, BCMA_CORE_80211);
 +              if (core) {
 +                      snprintf(prefix, sizeof(prefix), "sb/%u/",
 +                               core->core_index);
 +                      bcm47xx_fill_sprom(out, prefix);
 +              }
++              bcm47xx_fill_sprom_ethernet(out, NULL);
 +              return 0;
 +      } else {
 +              printk(KERN_WARNING "bcm47xx: unable to fill SPROM for given 
bustype.\n");


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to