dsa: mv88e6171: Fix tag_protocol check
authorGuenter Roeck <linux@roeck-us.net>
Tue, 14 Oct 2014 18:21:04 +0000 (11:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 20:23:27 +0000 (16:23 -0400)
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>
drivers/net/dsa/mv88e6171.c

index 6365e30..1020a7a 100644 (file)
@@ -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;