summaryrefslogtreecommitdiff
path: root/package/switch/src/switch-robo.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-01-03 01:53:30 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2013-01-03 01:53:30 +0000
commit25afeba608b9db64cc0cab1f7be790f64193f590 (patch)
treef293f93d06a2a30ce21d64d2a64763ba7bbd4e6c /package/switch/src/switch-robo.c
parentedc7ab525ff7cc45ea478b8b936e596789eb851a (diff)
downloadmtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.zip
mtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.tar.gz
mtk-20170518-25afeba608b9db64cc0cab1f7be790f64193f590.tar.bz2
brcm47xx: add a new version of the nvram rewrite patch
This is the version like it was send for mainline inclusion. SVN-Revision: 34988
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 f1160c8..3751653 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);
}