diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-10-14 11:21:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-14 16:23:27 -0400 |
commit | 77b3a4dcde4f770a0f3edbe16dd423b3d0717318 (patch) | |
tree | f31e04315016d454cd197fa0ee7c440a32532a00 /drivers/net | |
parent | 4d1bafbe485240ee19dcedad864c7c5bae07a7e1 (diff) |
dsa: mv88e6171: Fix tag_protocol check
tag_protocol is now an enum, so drivers have to check against it.
Cc: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Florian Fainelli <f.fainelli@gmail.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/mv88e6171.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c index 6365e30138a..1020a7af67c 100644 --- a/drivers/net/dsa/mv88e6171.c +++ b/drivers/net/dsa/mv88e6171.c @@ -206,7 +206,7 @@ static int mv88e6171_setup_port(struct dsa_switch *ds, int p) */ val = 0x0433; if (dsa_is_cpu_port(ds, p)) { - if (ds->dst->tag_protocol == htons(ETH_P_EDSA)) + if (ds->dst->tag_protocol == DSA_TAG_PROTO_EDSA) val |= 0x3300; else val |= 0x0100; |