can: kvaser_usb: Use can-dev unregistration mechanism
authorAhmed S. Darwish <ahmed.darwish@valeo.com>
Sat, 14 Mar 2015 13:11:47 +0000 (09:11 -0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 22 Mar 2015 22:50:11 +0000 (23:50 +0100)
commitc637aab05c9dd0894832a7c542a1553b2815b9ef
tree8e512526abe4dcbdeedae1fc7c9aef95d22dbf79
parent2b290bbb60847c0897c047b5214192810de529df
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>
drivers/net/can/usb/kvaser_usb.c