summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-01-03 01:53:30 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-01-03 01:53:30 +0000
commit25afeba608b9db64cc0cab1f7be790f64193f590 (patch)
treef293f93d06a2a30ce21d64d2a64763ba7bbd4e6c /target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch
parentedc7ab525ff7cc45ea478b8b936e596789eb851a (diff)
downloadmtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.zip
mtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.tar.gz
mtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.tar.bz2
brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion. SVN-Revision: 34988
Diffstat (limited to 'target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch')
-rw-r--r--target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch b/target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch
index bdd2c04..1ed0b8a 100644
--- a/target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch
+++ b/target/linux/brcm47xx/patches-3.6/400-arch-bcm47xx.patch
@@ -1,9 +1,9 @@
--- 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;
+@@ -196,3 +196,30 @@ int bcm47xx_nvram_getenv(char *name, cha
+ return -ENOENT;
}
- EXPORT_SYMBOL(nvram_getenv);
+ EXPORT_SYMBOL(bcm47xx_nvram_getenv);
+
+char *nvram_get(const char *name)
+{
@@ -13,7 +13,7 @@
+ return NULL;
+
+ if (!nvram_buf[0])
-+ early_nvram_init();
++ nvram_init();
+
+ /* Look for name=value and return value */
+ var = &nvram_buf[sizeof(struct nvram_header)];