aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-01-04 13:44:05 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-01-04 13:44:05 +0000
commitb99a637795efbb7aba2c5d4d77295c7012613759 (patch)
treeaf1d97e62b569f80aac3175594162938fb732ad5 /target/linux/ramips/files
parent061228d73c677628a13fa20e945a9ea5f28b0285 (diff)
downloadupstream-b99a637795efbb7aba2c5d4d77295c7012613759.tar.gz
upstream-b99a637795efbb7aba2c5d4d77295c7012613759.tar.bz2
upstream-b99a637795efbb7aba2c5d4d77295c7012613759.zip
ramips: ramips_esw: fix typos
Patch from #8577. SVN-Revision: 24898
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips_esw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips_esw.c b/target/linux/ramips/files/drivers/net/ramips_esw.c
index 18e5fa57d2..df567a7216 100644
--- a/target/linux/ramips/files/drivers/net/ramips_esw.c
+++ b/target/linux/ramips/files/drivers/net/ramips_esw.c
@@ -5,7 +5,7 @@
#define RT305X_ESW_REG_FCT0 0x08
#define RT305X_ESW_REG_PFC1 0x14
-#define RT305X_ESW_REG_PVIDC(_n) (0x48 + 4 * (_n))
+#define RT305X_ESW_REG_PVIDC(_n) (0x40 + 4 * (_n))
#define RT305X_ESW_REG_VLANI(_n) (0x50 + 4 * (_n))
#define RT305X_ESW_REG_VMSC(_n) (0x70 + 4 * (_n))
#define RT305X_ESW_REG_FPA 0x84
@@ -172,7 +172,7 @@ rt305x_esw_set_pvid(struct rt305x_esw *esw, unsigned port, unsigned pvid)
s = RT305X_ESW_PVIDC_PVID_S * (port % 2);
rt305x_esw_rmw(esw,
RT305X_ESW_REG_PVIDC(port / 2),
- RT305X_ESW_PVIDC_PVID_S << s,
+ RT305X_ESW_PVIDC_PVID_M << s,
(pvid & RT305X_ESW_PVIDC_PVID_M) << s);
}