aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/usb/kvaser_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can/usb/kvaser_usb.c')
-rw-r--r--drivers/net/can/usb/kvaser_usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/usb/kvaser_usb.c b/drivers/net/can/usb/kvaser_usb.c
index e77d11049747..4ca46edc061d 100644
--- a/drivers/net/can/usb/kvaser_usb.c
+++ b/drivers/net/can/usb/kvaser_usb.c
@@ -1388,6 +1388,7 @@ static const struct net_device_ops kvaser_usb_netdev_ops = {
1388 .ndo_open = kvaser_usb_open, 1388 .ndo_open = kvaser_usb_open,
1389 .ndo_stop = kvaser_usb_close, 1389 .ndo_stop = kvaser_usb_close,
1390 .ndo_start_xmit = kvaser_usb_start_xmit, 1390 .ndo_start_xmit = kvaser_usb_start_xmit,
1391 .ndo_change_mtu = can_change_mtu,
1391}; 1392};
1392 1393
1393static const struct can_bittiming_const kvaser_usb_bittiming_const = { 1394static const struct can_bittiming_const kvaser_usb_bittiming_const = {
@@ -1529,6 +1530,7 @@ static int kvaser_usb_init_one(struct usb_interface *intf,
1529 netdev->netdev_ops = &kvaser_usb_netdev_ops; 1530 netdev->netdev_ops = &kvaser_usb_netdev_ops;
1530 1531
1531 SET_NETDEV_DEV(netdev, &intf->dev); 1532 SET_NETDEV_DEV(netdev, &intf->dev);
1533 netdev->dev_id = channel;
1532 1534
1533 dev->nets[channel] = priv; 1535 dev->nets[channel] = priv;
1534 1536