Browse Source

MIPS: BCM47XX: move constant array from stack

Move the possible nvram sizes from the stack into the data segment

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6044/
Hauke Mehrtens 12 years ago
parent
commit
f4c4d589d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/mips/bcm47xx/nvram.c

+ 1 - 1
arch/mips/bcm47xx/nvram.c

@@ -22,11 +22,11 @@
 #include <asm/mach-bcm47xx/bcm47xx.h>
 #include <asm/mach-bcm47xx/bcm47xx.h>
 
 
 static char nvram_buf[NVRAM_SPACE];
 static char nvram_buf[NVRAM_SPACE];
+static const u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};
 
 
 static u32 find_nvram_size(u32 end)
 static u32 find_nvram_size(u32 end)
 {
 {
 	struct nvram_header *header;
 	struct nvram_header *header;
-	u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};
 	int i;
 	int i;
 
 
 	for (i = 0; i < ARRAY_SIZE(nvram_sizes); i++) {
 	for (i = 0; i < ARRAY_SIZE(nvram_sizes); i++) {