summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2009-11-16 13:57:46 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-17 12:54:00 +0100
commit377a1f0b92819697aa1792f171c305a681fcca5a (patch)
tree134dc5bba6a74f3d7c0756fc542f1e058c3ee639 /drivers/net/can
parentnet/can/mscan: trivial fixes (diff)
downloadlinux-377a1f0b92819697aa1792f171c305a681fcca5a.tar.xz
linux-377a1f0b92819697aa1792f171c305a681fcca5a.zip
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.c8
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)
return -EINVAL;
switch (mode) {
- case CAN_MODE_SLEEP:
- case CAN_MODE_STOP:
- netif_stop_queue(dev);
- mscan_set_mode(dev,
- (mode ==
- CAN_MODE_STOP) ? MSCAN_INIT_MODE :
- MSCAN_SLEEP_MODE);
- break;
case CAN_MODE_START:
if (priv->can.state <= CAN_STATE_BUS_OFF)
mscan_set_mode(dev, MSCAN_INIT_MODE);