Skip to content

Commit

Permalink
MIPS: BCM47XX: move constant array from stack
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
Hauke Mehrtens authored and Ralf Baechle committed Jan 22, 2014
1 parent 69733c9 commit f4c4d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/bcm47xx/nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
#include <asm/mach-bcm47xx/bcm47xx.h>

static char nvram_buf[NVRAM_SPACE];
static const u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};

static u32 find_nvram_size(u32 end)
{
struct nvram_header *header;
u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};
int i;

for (i = 0; i < ARRAY_SIZE(nvram_sizes); i++) {
Expand Down

0 comments on commit f4c4d58

Please sign in to comment.