diff options
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btusb.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 8bca784c0ea0..44b5e736ddc3 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -783,15 +783,6 @@ done: | |||
783 | return err; | 783 | return err; |
784 | } | 784 | } |
785 | 785 | ||
786 | static void btusb_destruct(struct hci_dev *hdev) | ||
787 | { | ||
788 | struct btusb_data *data = hdev->driver_data; | ||
789 | |||
790 | BT_DBG("%s", hdev->name); | ||
791 | |||
792 | kfree(data); | ||
793 | } | ||
794 | |||
795 | static void btusb_notify(struct hci_dev *hdev, unsigned int evt) | 786 | static void btusb_notify(struct hci_dev *hdev, unsigned int evt) |
796 | { | 787 | { |
797 | struct btusb_data *data = hdev->driver_data; | 788 | struct btusb_data *data = hdev->driver_data; |
@@ -1004,7 +995,6 @@ static int btusb_probe(struct usb_interface *intf, | |||
1004 | hdev->close = btusb_close; | 995 | hdev->close = btusb_close; |
1005 | hdev->flush = btusb_flush; | 996 | hdev->flush = btusb_flush; |
1006 | hdev->send = btusb_send_frame; | 997 | hdev->send = btusb_send_frame; |
1007 | hdev->destruct = btusb_destruct; | ||
1008 | hdev->notify = btusb_notify; | 998 | hdev->notify = btusb_notify; |
1009 | 999 | ||
1010 | hdev->owner = THIS_MODULE; | 1000 | hdev->owner = THIS_MODULE; |
@@ -1108,6 +1098,7 @@ static void btusb_disconnect(struct usb_interface *intf) | |||
1108 | __hci_dev_put(hdev); | 1098 | __hci_dev_put(hdev); |
1109 | 1099 | ||
1110 | hci_free_dev(hdev); | 1100 | hci_free_dev(hdev); |
1101 | kfree(data); | ||
1111 | } | 1102 | } |
1112 | 1103 | ||
1113 | #ifdef CONFIG_PM | 1104 | #ifdef CONFIG_PM |