+
--- a/arch/mips/bcm47xx/nvram.c
+++ b/arch/mips/bcm47xx/nvram.c
-@@ -33,6 +33,8 @@ struct nvram_header {
+@@ -36,6 +36,8 @@ struct nvram_header {
static char nvram_buf[NVRAM_SPACE];
static const u32 nvram_sizes[] = {0x8000, 0xF000, 0x10000};
static u32 find_nvram_size(void __iomem *end)
{
-@@ -62,6 +64,26 @@ static int nvram_find_and_copy(void __io
+@@ -65,6 +67,26 @@ static int nvram_find_and_copy(void __io
return -EEXIST;
}
/* TODO: when nvram is on nand flash check for bad blocks first. */
off = FLASH_MIN;
while (off <= lim) {
-@@ -189,6 +211,13 @@ int bcm47xx_nvram_getenv(const char *nam
+@@ -181,6 +203,13 @@ int bcm47xx_nvram_getenv(const char *nam
return err;
}