diff options
author | Christian Pellegrin <chripell@fsfe.org> | 2010-01-14 02:08:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-15 04:39:17 -0500 |
commit | ad72c347e56bf3a0231b9d686e17764157d2961c (patch) | |
tree | 4db03a0abae50edfaf996f43e3f717a57b776fbd /drivers/net/can/mscan | |
parent | 1954dc11776ef8c06263ba4cd21bf4d25c79a19c (diff) |
can: Proper ctrlmode handling for CAN devices
This patch adds error checking of ctrlmode values for CAN devices. As
an example all availabe bits are implemented in the mcp251x driver.
Signed-off-by: Christian Pellegrin <chripell@fsfe.org>
Acked-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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/can/mscan/mscan.c b/drivers/net/can/mscan/mscan.c index 40827c128b65..6b7dd578d417 100644 --- a/drivers/net/can/mscan/mscan.c +++ b/drivers/net/can/mscan/mscan.c | |||
@@ -686,6 +686,7 @@ struct net_device *alloc_mscandev(void) | |||
686 | priv->can.bittiming_const = &mscan_bittiming_const; | 686 | priv->can.bittiming_const = &mscan_bittiming_const; |
687 | priv->can.do_set_bittiming = mscan_do_set_bittiming; | 687 | priv->can.do_set_bittiming = mscan_do_set_bittiming; |
688 | priv->can.do_set_mode = mscan_do_set_mode; | 688 | priv->can.do_set_mode = mscan_do_set_mode; |
689 | priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES; | ||
689 | 690 | ||
690 | for (i = 0; i < TX_QUEUE_SIZE; i++) { | 691 | for (i = 0; i < TX_QUEUE_SIZE; i++) { |
691 | priv->tx_queue[i].id = i; | 692 | priv->tx_queue[i].id = i; |