diff options
author | Ahmed S. Darwish <ahmed.darwish@valeo.com> | 2015-03-14 09:11:47 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-03-22 18:50:11 -0400 |
commit | c637aab05c9dd0894832a7c542a1553b2815b9ef (patch) | |
tree | 8e512526abe4dcbdeedae1fc7c9aef95d22dbf79 /drivers/net/can/usb | |
parent | 2b290bbb60847c0897c047b5214192810de529df (diff) |
can: kvaser_usb: Use can-dev unregistration mechanism
Use can-dev's unregister_candev() instead of directly calling
networking unregister_netdev(). While both are functionally
equivalent, unregister_candev() might do extra stuff in the
future than just calling networking layer unregistration code.
Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/usb')
-rw-r--r-- | drivers/net/can/usb/kvaser_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/usb/kvaser_usb.c b/drivers/net/can/usb/kvaser_usb.c index e97a08ce0b90..d269ae0b072a 100644 --- a/drivers/net/can/usb/kvaser_usb.c +++ b/drivers/net/can/usb/kvaser_usb.c | |||
@@ -1856,7 +1856,7 @@ static void kvaser_usb_remove_interfaces(struct kvaser_usb *dev) | |||
1856 | if (!dev->nets[i]) | 1856 | if (!dev->nets[i]) |
1857 | continue; | 1857 | continue; |
1858 | 1858 | ||
1859 | unregister_netdev(dev->nets[i]->netdev); | 1859 | unregister_candev(dev->nets[i]->netdev); |
1860 | } | 1860 | } |
1861 | 1861 | ||
1862 | kvaser_usb_unlink_all_urbs(dev); | 1862 | kvaser_usb_unlink_all_urbs(dev); |