diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-03 01:48:43 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-01-03 01:48:43 +0000 |
commit | d4db204893ce8c23df31641e3e61a811e13ae67a (patch) | |
tree | 8f331bc9a4201f81eaacfa94db8754a72eea39d5 /target/linux/brcm47xx/patches-3.3/006-MIPS-bcm47xx-refactor-fetching-board-data.patch | |
parent | d01cd03c82df4eede1ddaa42fbf7cd4a1eff9b6b (diff) |
brcm47xx: remove support for kernel version 3.3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34986 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.3/006-MIPS-bcm47xx-refactor-fetching-board-data.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.3/006-MIPS-bcm47xx-refactor-fetching-board-data.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/target/linux/brcm47xx/patches-3.3/006-MIPS-bcm47xx-refactor-fetching-board-data.patch b/target/linux/brcm47xx/patches-3.3/006-MIPS-bcm47xx-refactor-fetching-board-data.patch deleted file mode 100644 index f114501a4..000000000 --- a/target/linux/brcm47xx/patches-3.3/006-MIPS-bcm47xx-refactor-fetching-board-data.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/arch/mips/bcm47xx/setup.c -+++ b/arch/mips/bcm47xx/setup.c -@@ -109,12 +109,7 @@ static int bcm47xx_get_invariants(struct - /* Fill boardinfo structure */ - memset(&(iv->boardinfo), 0 , sizeof(struct ssb_boardinfo)); - -- if (nvram_getenv("boardvendor", buf, sizeof(buf)) >= 0) -- iv->boardinfo.vendor = (u16)simple_strtoul(buf, NULL, 0); -- else -- iv->boardinfo.vendor = SSB_BOARDVENDOR_BCM; -- if (nvram_getenv("boardtype", buf, sizeof(buf)) >= 0) -- iv->boardinfo.type = (u16)simple_strtoul(buf, NULL, 0); -+ bcm47xx_fill_ssb_boardinfo(&iv->boardinfo, NULL); - - bcm47xx_fill_sprom(&iv->sprom, NULL); - ---- a/arch/mips/bcm47xx/sprom.c -+++ b/arch/mips/bcm47xx/sprom.c -@@ -618,3 +618,15 @@ void bcm47xx_fill_sprom(struct ssb_sprom - bcm47xx_fill_sprom_r1(sprom, prefix); - } - } -+ -+#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); -+ if (!boardinfo->vendor) -+ boardinfo->vendor = SSB_BOARDVENDOR_BCM; -+ -+ nvram_read_u16(prefix, NULL, "boardtype", &boardinfo->type, 0); -+} -+#endif ---- a/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h -+++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx.h -@@ -47,4 +47,9 @@ extern enum bcm47xx_bus_type bcm47xx_bus - void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix); - void bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, const char *prefix); - -+#ifdef CONFIG_BCM47XX_SSB -+void bcm47xx_fill_ssb_boardinfo(struct ssb_boardinfo *boardinfo, -+ const char *prefix); -+#endif -+ - #endif /* __ASM_BCM47XX_H */ |