can: ucan: ucan_disconnect(): change unregister_netdev() to unregister_candev()

From API pairing, change unregister_netdev() to unregister_candev()
since the registration function is register_candev(). Actually, they
are the same.

Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/all/20221024110033.727542-1-dzm91@hust.edu.cn
[mkl: adjust subject + commit message]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Dongliang Mu 2022-10-24 19:00:30 +08:00 committed by Marc Kleine-Budde
parent 4aeb918809
commit aa9832e450

View File

@ -1582,7 +1582,7 @@ static void ucan_disconnect(struct usb_interface *intf)
usb_set_intfdata(intf, NULL);
if (up) {
unregister_netdev(up->netdev);
unregister_candev(up->netdev);
free_candev(up->netdev);
}
}