mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-21 00:10:14 +03:00
This patch add support for the NAND flash on BCM5357 based devices like the WNR3500Lv2. Thank you Tathagata Das <tathagata@alumnux.com> for the patch git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30943 3c298f89-4303-0410-b956-a3cf2f4a3e73
25 lines
748 B
Diff
25 lines
748 B
Diff
From 3ac18c5072e097ffa719994ef3b5c64e744a5405 Mon Sep 17 00:00:00 2001
|
|
From: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Date: Sat, 18 Feb 2012 14:46:45 +0100
|
|
Subject: [PATCH 196/202] MIPS: BCM47XX: return number of written bytes in
|
|
nvram_getenv
|
|
|
|
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
---
|
|
arch/mips/bcm47xx/nvram.c | 3 +--
|
|
1 files changed, 1 insertions(+), 2 deletions(-)
|
|
|
|
--- a/arch/mips/bcm47xx/nvram.c
|
|
+++ b/arch/mips/bcm47xx/nvram.c
|
|
@@ -243,8 +243,7 @@ int nvram_getenv(char *name, char *val,
|
|
value = eq + 1;
|
|
if ((eq - var) == strlen(name) &&
|
|
strncmp(var, name, (eq - var)) == 0) {
|
|
- snprintf(val, val_len, "%s", value);
|
|
- return 0;
|
|
+ return snprintf(val, val_len, "%s", value);
|
|
}
|
|
}
|
|
return NVRAM_ERR_ENVNOTFOUND;
|