summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-01-07 15:47:15 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-13 17:01:23 +0200
commit1a609a0a9375cc1fc2097dc697d08fb278a4c764 (patch)
tree217b7a2d5d7cb707de6ed9826e2cd2fafeed3a66 /drivers/clocksource
parentbf18c7118cf83ad4b9aa476354b4a06bcb9d0c4f (diff)
Bluetooth: bfusb: Free driver_data on USB shutdown
This frees the private driver data on USB shutdown instead of using the hci-destruct callback. We already call usb_set_intfdata(intf, NULL) but we do not do the same with the hci object. This would be totally safe, though. After calling hci_unregister_dev()/hci_free_dev() the hdev object will never call any callback of us again except the destruct callback. Therefore, we can safely set the destruct callback to NULL and free the driver data right away. This allows to unload the module without waiting for the hdev device to be released. 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/clocksource')
0 files changed, 0 insertions, 0 deletions