diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-11-16 07:57:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-17 06:54:00 -0500 |
commit | 377a1f0b92819697aa1792f171c305a681fcca5a (patch) | |
tree | 134dc5bba6a74f3d7c0756fc542f1e058c3ee639 /drivers/net/can | |
parent | 0285e7ceaaec9ef2d2e74dd37e2b557c0e017b5c (diff) |
net/can/mscan: drop support for CAN_MODE_{SLEEP|STOP}
The upper layer does not support it yet.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/mscan/mscan.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c index 6394de840427..839b471cdf5d 100644 --- a/drivers/net/can/mscan/mscan.c +++ b/drivers/net/can/mscan/mscan.c | |||
@@ -487,14 +487,6 @@ static int mscan_do_set_mode(struct net_device *dev, enum can_mode mode) | |||
487 | return -EINVAL; | 487 | return -EINVAL; |
488 | 488 | ||
489 | switch (mode) { | 489 | switch (mode) { |
490 | case CAN_MODE_SLEEP: | ||
491 | case CAN_MODE_STOP: | ||
492 | netif_stop_queue(dev); | ||
493 | mscan_set_mode(dev, | ||
494 | (mode == | ||
495 | CAN_MODE_STOP) ? MSCAN_INIT_MODE : | ||
496 | MSCAN_SLEEP_MODE); | ||
497 | break; | ||
498 | case CAN_MODE_START: | 490 | case CAN_MODE_START: |
499 | if (priv->can.state <= CAN_STATE_BUS_OFF) | 491 | if (priv->can.state <= CAN_STATE_BUS_OFF) |
500 | mscan_set_mode(dev, MSCAN_INIT_MODE); | 492 | mscan_set_mode(dev, MSCAN_INIT_MODE); |