aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-10-03 07:34:19 -0400
committerJohn Crispin <blogic@openwrt.org>2012-11-09 05:37:17 -0500
commit2c3763111bf7e3753e46842e17fce0a68dab90ac (patch)
tree1c2d50eb4338e1ac87ac7d67d028989ae6db7a93
parent5d24ceab4eaf0dd7825c5a06dc6f264c0a59660c (diff)
MIPS: BCM47XX: read sprom without prefix if no ieee80211 core
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>
-rw-r--r--arch/mips/bcm47xx/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c
index 95bf4d7bac21..803764df9b14 100644
--- a/arch/mips/bcm47xx/setup.c
+++ b/arch/mips/bcm47xx/setup.c
@@ -175,6 +175,8 @@ static int bcm47xx_get_sprom_bcma(struct bcma_bus *bus, struct ssb_sprom *out)
175 snprintf(prefix, sizeof(prefix), "sb/%u/", 175 snprintf(prefix, sizeof(prefix), "sb/%u/",
176 core->core_index); 176 core->core_index);
177 bcm47xx_fill_sprom(out, prefix); 177 bcm47xx_fill_sprom(out, prefix);
178 } else {
179 bcm47xx_fill_sprom(out, NULL);
178 } 180 }
179 return 0; 181 return 0;
180 default: 182 default: