summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch
diff options
context:
space:
mode:
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-31 10:06:05 +0000
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-07-31 10:06:05 +0000
commit503bfaa4f13abf6e5c2e5a95b8a228cae49ac870 (patch)
tree82697159d17554c7a1eb662f5cce237ce25895b5 /target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch
parent48bf9ccb332b5c7b8c5983d5c0ac4a2fce2c10cf (diff)
brcm47xx: some checkpatch fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22425 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch')
-rw-r--r--target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch b/target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch
index 722a94ba5f..1db97e5e43 100644
--- a/target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch
+++ b/target/linux/brcm47xx/patches-2.6.35/400-arch-bcm47xx.patch
@@ -1,7 +1,7 @@
--- a/arch/mips/bcm47xx/nvram.c
+++ b/arch/mips/bcm47xx/nvram.c
@@ -92,3 +92,30 @@ int nvram_getenv(char *name, char *val,
- return 1;
+ return -1;
}
EXPORT_SYMBOL(nvram_getenv);
+
@@ -20,7 +20,8 @@
+ end = nvram_buf + sizeof(nvram_buf) - 2;
+ end[0] = end[1] = '\0';
+ for (; *var; var = value + strlen(value) + 1) {
-+ if (!(eq = strchr(var, '=')))
++ eq = strchr(var, '=');
++ if (!eq)
+ break;
+ value = eq + 1;
+ if ((eq - var) == strlen(name) && strncmp(var, name, (eq - var)) == 0)
@@ -29,11 +30,10 @@
+
+ return NULL;
+}
-+
+EXPORT_SYMBOL(nvram_get);
--- a/arch/mips/bcm47xx/setup.c
+++ b/arch/mips/bcm47xx/setup.c
-@@ -236,3 +236,20 @@ void __init plat_mem_setup(void)
+@@ -238,3 +238,20 @@ void __init plat_mem_setup(void)
_machine_halt = bcm47xx_machine_halt;
pm_power_off = bcm47xx_machine_halt;
}