]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MIPS: BCM47XX: read sprom without prefix if no ieee80211 core
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 3 Oct 2012 11:34:19 +0000 (11:34 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 9 Nov 2012 10:37:17 +0000 (11:37 +0100)
If there is no ieee80211 core on the devices like on the BCM4706 read
out the sprom and the other data without using a prefix.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Patchwork: http://patchwork.linux-mips.org/patch/4361
Signed-off-by: John Crispin <blogic@openwrt.org>
arch/mips/bcm47xx/setup.c

index 95bf4d7bac21146062e6ae2c62998b8981dea6b3..803764df9b14a41fe054e987c5f56448aa1b77d3 100644 (file)
@@ -175,6 +175,8 @@ static int bcm47xx_get_sprom_bcma(struct bcma_bus *bus, struct ssb_sprom *out)
                        snprintf(prefix, sizeof(prefix), "sb/%u/",
                                 core->core_index);
                        bcm47xx_fill_sprom(out, prefix);
+               } else {
+                       bcm47xx_fill_sprom(out, NULL);
                }
                return 0;
        default: