diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-04-06 19:02:25 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-04-06 19:02:25 +0000 |
commit | 825fbbb9005c0521c79ccd282ff6b3f03c755638 (patch) | |
tree | 02c856969485224978caa31e12cec00238e0eeb1 /target/linux/brcm47xx/patches-3.6 | |
parent | 381a78c7e8bb09d273d19305f69655f3d101ab1c (diff) | |
download | master-187ad058-825fbbb9005c0521c79ccd282ff6b3f03c755638.tar.gz master-187ad058-825fbbb9005c0521c79ccd282ff6b3f03c755638.tar.bz2 master-187ad058-825fbbb9005c0521c79ccd282ff6b3f03c755638.zip |
brcm47xx: fix error in board detection when nvram is not available.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36234 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.6')
-rw-r--r-- | target/linux/brcm47xx/patches-3.6/260-MIPS-BCM47XX-add-board-detection.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/brcm47xx/patches-3.6/260-MIPS-BCM47XX-add-board-detection.patch b/target/linux/brcm47xx/patches-3.6/260-MIPS-BCM47XX-add-board-detection.patch index ec307b1b68..08c0a979ae 100644 --- a/target/linux/brcm47xx/patches-3.6/260-MIPS-BCM47XX-add-board-detection.patch +++ b/target/linux/brcm47xx/patches-3.6/260-MIPS-BCM47XX-add-board-detection.patch @@ -8,7 +8,7 @@ obj-$(CONFIG_BCM47XX_SSB) += wgt634u.o --- /dev/null +++ b/arch/mips/bcm47xx/board.c -@@ -0,0 +1,220 @@ +@@ -0,0 +1,222 @@ +#include <linux/export.h> +#include <linux/string.h> +#include <bcm47xx_board.h> @@ -209,8 +209,10 @@ + if (bcm47xx_board != NULL) + return; + /* check if the nvram is available */ -+ if (bcm47xx_nvram_getenv("boardtype", buf, sizeof(buf)) == -ENXIO) ++ if (bcm47xx_nvram_getenv("boardtype", buf, sizeof(buf)) == -ENXIO) { ++ bcm47xx_board = bcm47xx_board_unknown; + return; ++ } + + bcm47xx_board = bcm47xx_board_get_nvram(); + pr_info("Found board: \"%s\"\n", bcm47xx_board->name); |