can: peak_usb: replace unregister_netdev() with unregister_candev()
authorStephane Grosjean <s.grosjean@peak-system.com>
Mon, 16 Jan 2023 20:09:28 +0000 (20:09 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 2 Feb 2023 16:39:20 +0000 (17:39 +0100)
commite1bd882252439dae49c40cfe80997cde5955939f
tree1a7d9edd5c31b453c81e246730dda78dcdbd3b6e
parente7a7b3d22503d79ccd0c2536080ed3f7b10a23f6
can: peak_usb: replace unregister_netdev() with unregister_candev()

This patch changes the call to unregister_netdev() in
peak_usb_disconnect() with unregister_candev().

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Lukas Magel <lukas.magel@posteo.net>
Link: https://lore.kernel.org/all/20230116200932.157769-5-lukas.magel@posteo.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_core.c