ramips: ramips_esw: fix typos
authorGabor Juhos <juhosg@openwrt.org>
Tue, 4 Jan 2011 13:44:05 +0000 (13:44 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 4 Jan 2011 13:44:05 +0000 (13:44 +0000)
Patch from #8577.

SVN-Revision: 24898

target/linux/ramips/files/drivers/net/ramips_esw.c

index 18e5fa57d23d8ee4b40544fc9d15c832bc4a38d6..df567a7216467e6f8db21cd272c378b0642319ef 100644 (file)
@@ -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);
 }