diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-01-07 14:47:16 (GMT) |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-13 15:01:23 (GMT) |
commit | 8381088e39d03c55552b9dfb09b9b303e96acc78 (patch) | |
tree | c5eed79a7c14af8f916886e0b6a99c2760e268f8 /drivers/ata/libata-transport.c | |
parent | 1a609a0a9375cc1fc2097dc697d08fb278a4c764 (diff) | |
download | linux-fsl-qoriq-8381088e39d03c55552b9dfb09b9b303e96acc78.tar.xz |
Bluetooth: btusb: Free driver data on USB shutdown
Instead of using the hci-destruct callback we free our private driver
data on USB shutdown. We already called hci_unregister_dev() here so the
hci core will never ever call our callbacks again except the destruct
callback.
However, there is no reason to keep our *private* driver data alive if
we get never called again and the hci-core does never touch it the data.
So we simply free it right away and set the destruct callback to NULL.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'drivers/ata/libata-transport.c')
0 files changed, 0 insertions, 0 deletions