]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31e5675dc52a296f7e035fd4dbcfae6cd5d84ba6
tree8e512526abe4dcbdeedae1fc7c9aef95d22dbf79
parent1f8517a777b32ab0f8385c7d77f894d6e2dbdf58
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