Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4c4d589 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by Ralf Baechle
Browse files

MIPS: BCM47XX: move constant array from stack



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

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6044/
parent 69733c9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++) {