From: Guenter Roeck Date: Tue, 14 Oct 2014 18:21:04 +0000 (-0700) Subject: dsa: mv88e6171: Fix tag_protocol check X-Git-Tag: v3.18-rc1~10^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77b3a4dcde4f770a0f3edbe16dd423b3d0717318;p=profile%2Fwearable%2Fplatform%2Fkernel%2Flinux-4.9-exynos9110.git dsa: mv88e6171: Fix tag_protocol check tag_protocol is now an enum, so drivers have to check against it. Cc: Andrew Lunn Signed-off-by: Guenter Roeck Acked-by: Florian Fainelli Acked-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/mv88e6171.c b/drivers/net/dsa/mv88e6171.c index 6365e30..1020a7a 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;