From 76c767f122670919a78019834af06ef58ac6470a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Thu, 3 Jan 2013 01:48:43 +0000 Subject: brcm47xx: remove support for kernel version 3.3 SVN-Revision: 34986 --- .../brcm47xx/patches-3.3/400-arch-bcm47xx.patch | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 target/linux/brcm47xx/patches-3.3/400-arch-bcm47xx.patch (limited to 'target/linux/brcm47xx/patches-3.3/400-arch-bcm47xx.patch') diff --git a/target/linux/brcm47xx/patches-3.3/400-arch-bcm47xx.patch b/target/linux/brcm47xx/patches-3.3/400-arch-bcm47xx.patch deleted file mode 100644 index bdd2c040dc..0000000000 --- a/target/linux/brcm47xx/patches-3.3/400-arch-bcm47xx.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- a/arch/mips/bcm47xx/nvram.c -+++ b/arch/mips/bcm47xx/nvram.c -@@ -183,3 +183,30 @@ int nvram_getenv(char *name, char *val, - return NVRAM_ERR_ENVNOTFOUND; - } - EXPORT_SYMBOL(nvram_getenv); -+ -+char *nvram_get(const char *name) -+{ -+ char *var, *value, *end, *eq; -+ -+ if (!name) -+ return NULL; -+ -+ if (!nvram_buf[0]) -+ early_nvram_init(); -+ -+ /* Look for name=value and return value */ -+ var = &nvram_buf[sizeof(struct nvram_header)]; -+ end = nvram_buf + sizeof(nvram_buf) - 2; -+ end[0] = end[1] = '\0'; -+ for (; *var; var = value + strlen(value) + 1) { -+ eq = strchr(var, '='); -+ if (!eq) -+ break; -+ value = eq + 1; -+ if ((eq - var) == strlen(name) && strncmp(var, name, (eq - var)) == 0) -+ return value; -+ } -+ -+ return NULL; -+} -+EXPORT_SYMBOL(nvram_get); -- cgit v1.2.3