aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx/sprom.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-10-26 11:13:16 +0100
committerRalf Baechle <ralf@linux-mips.org>2015-11-11 08:36:57 +0100
commitd8cfb5037bfc875e6dc8e09e4caceb443c04ff6a (patch)
tree329006b10d850609914659eab385b5eab4fe0001 /arch/mips/bcm47xx/sprom.c
parent2f94acde42b70c81129b398c44aa09411974a16d (diff)
downloadkernel_replicant_linux-d8cfb5037bfc875e6dc8e09e4caceb443c04ff6a.tar.gz
kernel_replicant_linux-d8cfb5037bfc875e6dc8e09e4caceb443c04ff6a.tar.bz2
kernel_replicant_linux-d8cfb5037bfc875e6dc8e09e4caceb443c04ff6a.zip
MIPS: BCM47xx: Fetch board info directly in callback function
This drops another symbol dependency between setup.c and sprom.c which will allow us to make SPROM code a separated module (and share it with ARM). Patch tested on Linksys WRT300N V1. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Cc: Hauke Mehrtens <hauke@hauke-m.de> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/11360/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/bcm47xx/sprom.c')
-rw-r--r--arch/mips/bcm47xx/sprom.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/mips/bcm47xx/sprom.c b/arch/mips/bcm47xx/sprom.c
index 43353db9a6db..a7e569c7968e 100644
--- a/arch/mips/bcm47xx/sprom.c
+++ b/arch/mips/bcm47xx/sprom.c
@@ -599,19 +599,6 @@ void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix,
bcm47xx_sprom_fill_auto(sprom, prefix, fallback);
}
-#ifdef CONFIG_BCM47XX_SSB
-void bcm47xx_fill_ssb_boardinfo(struct ssb_boardinfo *boardinfo,
- const char *prefix)
-{
- nvram_read_u16(prefix, NULL, "boardvendor", &boardinfo->vendor, 0,
- true);
- if (!boardinfo->vendor)
- boardinfo->vendor = SSB_BOARDVENDOR_BCM;
-
- nvram_read_u16(prefix, NULL, "boardtype", &boardinfo->type, 0, true);
-}
-#endif
-
#if defined(CONFIG_BCM47XX_SSB)
static int bcm47xx_get_sprom_ssb(struct ssb_bus *bus, struct ssb_sprom *out)
{