Changeset 36234


Ignore:
Timestamp:
2013-04-06T21:02:25+02:00 (5 years ago)
Author:
hauke
Message:

brcm47xx: fix error in board detection when nvram is not available.

Location:
trunk/target/linux/brcm47xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-3.6/260-MIPS-BCM47XX-add-board-detection.patch

    r35790 r36234  
    99--- /dev/null 
    1010+++ b/arch/mips/bcm47xx/board.c 
    11 @@ -0,0 +1,220 @@ 
     11@@ -0,0 +1,222 @@ 
    1212+#include <linux/export.h> 
    1313+#include <linux/string.h> 
     
    210210+               return; 
    211211+       /* check if the nvram is available */ 
    212 +       if (bcm47xx_nvram_getenv("boardtype", buf, sizeof(buf)) == -ENXIO) 
     212+       if (bcm47xx_nvram_getenv("boardtype", buf, sizeof(buf)) == -ENXIO) { 
     213+               bcm47xx_board = bcm47xx_board_unknown; 
    213214+               return; 
     215+       } 
    214216+ 
    215217+       bcm47xx_board = bcm47xx_board_get_nvram(); 
  • trunk/target/linux/brcm47xx/patches-3.8/260-MIPS-BCM47XX-add-board-detection.patch

    r35790 r36234  
    99--- /dev/null 
    1010+++ b/arch/mips/bcm47xx/board.c 
    11 @@ -0,0 +1,220 @@ 
     11@@ -0,0 +1,222 @@ 
    1212+#include <linux/export.h> 
    1313+#include <linux/string.h> 
     
    210210+               return; 
    211211+       /* check if the nvram is available */ 
    212 +       if (bcm47xx_nvram_getenv("boardtype", buf, sizeof(buf)) == -ENXIO) 
     212+       if (bcm47xx_nvram_getenv("boardtype", buf, sizeof(buf)) == -ENXIO) { 
     213+               bcm47xx_board = bcm47xx_board_unknown; 
    213214+               return; 
     215+       } 
    214216+ 
    215217+       bcm47xx_board = bcm47xx_board_get_nvram(); 
Note: See TracChangeset for help on using the changeset viewer.