From: Wolfgang Grandegger Date: Mon, 14 Nov 2011 19:30:05 +0000 (-0500) Subject: net/can/mscan: Fix buggy listen only mode setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=abbd00b82a2771b0460ba2cffdb1343aa827ccde;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git net/can/mscan: Fix buggy listen only mode setting This patch fixes an issue introduced recently with commit 452448f9283e1939408b397e87974a418825b0a8. CC: Marc Kleine-Budde Signed-off-by: Wolfgang Grandegger Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c index 74f3b1829e02..1c82dd8b896e 100644 --- a/drivers/net/can/mscan/mscan.c +++ b/drivers/net/can/mscan/mscan.c @@ -581,7 +581,7 @@ static int mscan_open(struct net_device *dev) priv->open_time = jiffies; - if (ctrlmode.flags & CAN_CTRLMODE_LISTENONLY) + if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) setbits8(®s->canctl1, MSCAN_LISTEN); else clrbits8(®s->canctl1, MSCAN_LISTEN);