aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-10-13 16:56:50 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-01-22 14:18:55 -0500
commitf4c4d589d5c1046bb5a9c17d98afcda43e04a315 (patch)
treee5fdd3812b7a5b6cbfa1c3352841fbc483339df9 /arch/mips/bcm47xx
parent69733c9b0bcd35382e2d514362a31a12a507aea3 (diff)
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/
Diffstat (limited to 'arch/mips/bcm47xx')
-rw-r--r--arch/mips/bcm47xx/nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/bcm47xx/nvram.c b/arch/mips/bcm47xx/nvram.c
index b4c585b1c62e..085a3ee28d0b 100644
--- a/arch/mips/bcm47xx/nvram.c
+++ b/arch/mips/bcm47xx/nvram.c
@@ -22,11 +22,11 @@
22#include <asm/mach-bcm47xx/bcm47xx.h> 22#include <asm/mach-bcm47xx/bcm47xx.h>
23 23
24static char nvram_buf[NVRAM_SPACE]; 24static char nvram_buf[NVRAM_SPACE];
25static const u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};
25 26
26static u32 find_nvram_size(u32 end) 27static u32 find_nvram_size(u32 end)
27{ 28{
28 struct nvram_header *header; 29 struct nvram_header *header;
29 u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};
30 int i; 30 int i;
31 31
32 for (i = 0; i < ARRAY_SIZE(nvram_sizes); i++) { 32 for (i = 0; i < ARRAY_SIZE(nvram_sizes); i++) {