kernel: update bcma and ssb to master-2013-01-09 from wireless-testing
[librecmc/librecmc.git] / target / linux / brcm47xx / patches-3.6 / 820-wgt634u-nvram-fix.patch
index 74b17c74e6c98b5f5b9e98724bb69525643e884b..745ff501ae1a93a7e5f8c37dc018fe7c7c27ba01 100644 (file)
@@ -5,12 +5,11 @@ out the configuration than the in kernel cfe config reader.
 
 --- a/arch/mips/bcm47xx/Makefile
 +++ b/arch/mips/bcm47xx/Makefile
-@@ -3,4 +3,4 @@
- # under Linux.
- #
+@@ -5,3 +5,4 @@
  
--obj-y                                 += gpio.o irq.o nvram.o prom.o serial.o setup.o time.o sprom.o
-+obj-y                                 += gpio.o irq.o nvram.o prom.o serial.o setup.o time.o sprom.o cfe_env.o
+ obj-y                                 += irq.o nvram.o prom.o serial.o setup.o time.o sprom.o
+ obj-y                                 += gpio.o
++obj-y                                 += cfe_env.o
 --- /dev/null
 +++ b/arch/mips/bcm47xx/cfe_env.c
 @@ -0,0 +1,229 @@
@@ -281,7 +280,7 @@ out the configuration than the in kernel cfe config reader.
        /* TODO: when nvram is on nand flash check for bad blocks first. */
        off = FLASH_MIN;
        while (off <= lim) {
-@@ -179,6 +201,12 @@ int bcm47xx_nvram_getenv(char *name, cha
+@@ -181,6 +203,12 @@ int bcm47xx_nvram_getenv(char *name, cha
                        return err;
        }
  
@@ -294,7 +293,7 @@ out the configuration than the in kernel cfe config reader.
        /* Look for name=value and return value */
        var = &nvram_buf[sizeof(struct nvram_header)];
        end = nvram_buf + sizeof(nvram_buf) - 2;
-@@ -207,6 +235,9 @@ char *nvram_get(const char *name)
+@@ -209,6 +237,9 @@ char *nvram_get(const char *name)
        if (!nvram_buf[0])
                nvram_init();