|
@@ -783,15 +783,6 @@ done:
|
|
|
return err;
|
|
|
}
|
|
|
|
|
|
-static void btusb_destruct(struct hci_dev *hdev)
|
|
|
-{
|
|
|
- struct btusb_data *data = hdev->driver_data;
|
|
|
-
|
|
|
- BT_DBG("%s", hdev->name);
|
|
|
-
|
|
|
- kfree(data);
|
|
|
-}
|
|
|
-
|
|
|
static void btusb_notify(struct hci_dev *hdev, unsigned int evt)
|
|
|
{
|
|
|
struct btusb_data *data = hdev->driver_data;
|
|
@@ -1004,7 +995,6 @@ static int btusb_probe(struct usb_interface *intf,
|
|
|
hdev->close = btusb_close;
|
|
|
hdev->flush = btusb_flush;
|
|
|
hdev->send = btusb_send_frame;
|
|
|
- hdev->destruct = btusb_destruct;
|
|
|
hdev->notify = btusb_notify;
|
|
|
|
|
|
hdev->owner = THIS_MODULE;
|
|
@@ -1108,6 +1098,7 @@ static void btusb_disconnect(struct usb_interface *intf)
|
|
|
__hci_dev_put(hdev);
|
|
|
|
|
|
hci_free_dev(hdev);
|
|
|
+ kfree(data);
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_PM
|