aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/src/switch-robo.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2013-01-03 01:53:30 +0000
committerHauke Mehrtens <hauke@openwrt.org>2013-01-03 01:53:30 +0000
commit880dc8381a3948b0c49610a3e36add1a91e7f06b (patch)
tree80c467f23a4f364b9be69716075cd3b186161e62 /package/switch/src/switch-robo.c
parent979291e9c5a2acd6c9942bbb8b846f07ec0d6050 (diff)
downloadmaster-187ad058-880dc8381a3948b0c49610a3e36add1a91e7f06b.tar.gz
master-187ad058-880dc8381a3948b0c49610a3e36add1a91e7f06b.tar.bz2
master-187ad058-880dc8381a3948b0c49610a3e36add1a91e7f06b.zip
brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34988 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch/src/switch-robo.c')
-rw-r--r--package/switch/src/switch-robo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c
index f1160c8894..3751653a6d 100644
--- a/package/switch/src/switch-robo.c
+++ b/package/switch/src/switch-robo.c
@@ -35,7 +35,7 @@
#include "etc53xx.h"
#ifdef CONFIG_BCM47XX
-#include <nvram.h>
+#include <bcm47xx_nvram.h>
#endif
#define DRIVER_NAME "bcm53xx"
@@ -236,7 +236,7 @@ static int robo_switch_enable(void)
#ifdef CONFIG_BCM47XX
/* WAN port LED, except for Netgear WGT634U */
- if (nvram_getenv("nvram_type", buf, sizeof(buf)) >= 0) {
+ if (bcm47xx_nvram_getenv("nvram_type", buf, sizeof(buf)) >= 0) {
if (strcmp(buf, "cfe") != 0)
robo_write16(ROBO_CTRL_PAGE, 0x16, 0x1F);
}