Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: hci_nokia: Use new hci_uart_unregister_device() function

Simplify _remove() path for hci_nokia.c

Signed-off-by: Ian Molton <ian@mnementh.co.uk>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabor.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Ian Molton and committed by
Marcel Holtmann
05f2a0bc c34dc3bf

+1 -9
+1 -9
drivers/bluetooth/hci_nokia.c
··· 767 767 static void nokia_bluetooth_serdev_remove(struct serdev_device *serdev) 768 768 { 769 769 struct nokia_bt_dev *btdev = serdev_device_get_drvdata(serdev); 770 - struct hci_uart *hu = &btdev->hu; 771 - struct hci_dev *hdev = hu->hdev; 772 770 773 - 774 - hci_unregister_dev(hdev); 775 - hci_free_dev(hdev); 776 - 777 - cancel_work_sync(&hu->write_work); 778 - 779 - hu->proto->close(hu); 771 + hci_uart_unregister_device(&btdev->hu); 780 772 } 781 773 782 774 static int nokia_bluetooth_runtime_suspend(struct device *dev)