diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2015-04-20 17:43:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-20 22:01:16 -0400 |
commit | 47cf1e659e0f44c29788a96345862c44c6a48c89 (patch) | |
tree | be110cb7ed8db172cfcc97e4a0774bf405f36ca4 /drivers/net | |
parent | 614f03fc6a897d212546a93f50d449409215dfd4 (diff) |
net: dsa: mv88e6xxx: use PORT_DEFAULT_VLAN
Minor, use the explicit PORT_DEFAULT_VLAN define instead of 0x07.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.c b/drivers/net/dsa/mv88e6xxx.c index 48712bd630bb..af639ab4c55b 100644 --- a/drivers/net/dsa/mv88e6xxx.c +++ b/drivers/net/dsa/mv88e6xxx.c | |||
@@ -1274,7 +1274,8 @@ int mv88e6xxx_setup_port_common(struct dsa_switch *ds, int port) | |||
1274 | /* Default VLAN ID and priority: don't set a default VLAN | 1274 | /* Default VLAN ID and priority: don't set a default VLAN |
1275 | * ID, and set the default packet priority to zero. | 1275 | * ID, and set the default packet priority to zero. |
1276 | */ | 1276 | */ |
1277 | ret = _mv88e6xxx_reg_write(ds, REG_PORT(port), 0x07, 0x0000); | 1277 | ret = _mv88e6xxx_reg_write(ds, REG_PORT(port), PORT_DEFAULT_VLAN, |
1278 | 0x0000); | ||
1278 | abort: | 1279 | abort: |
1279 | mutex_unlock(&ps->smi_mutex); | 1280 | mutex_unlock(&ps->smi_mutex); |
1280 | return ret; | 1281 | return ret; |