diff options
author | Wolfgang Grandegger <wg@grandegger.com> | 2011-11-14 14:30:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-14 14:30:05 -0500 |
commit | abbd00b82a2771b0460ba2cffdb1343aa827ccde (patch) | |
tree | a90d2c5f10d362e47cee8e6f193a23a179451137 /drivers/net/can/mscan | |
parent | 612a94d6f24eb2427eabf554392080302da664dd (diff) |
net/can/mscan: Fix buggy listen only mode setting
This patch fixes an issue introduced recently with commit
452448f9283e1939408b397e87974a418825b0a8.
CC: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/mscan')
-rw-r--r-- | drivers/net/can/mscan/mscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c index 74f3b1829e0..1c82dd8b896 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) | |||
581 | 581 | ||
582 | priv->open_time = jiffies; | 582 | priv->open_time = jiffies; |
583 | 583 | ||
584 | if (ctrlmode.flags & CAN_CTRLMODE_LISTENONLY) | 584 | if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) |
585 | setbits8(®s->canctl1, MSCAN_LISTEN); | 585 | setbits8(®s->canctl1, MSCAN_LISTEN); |
586 | else | 586 | else |
587 | clrbits8(®s->canctl1, MSCAN_LISTEN); | 587 | clrbits8(®s->canctl1, MSCAN_LISTEN); |