From: David Herrmann Date: Sat, 7 Jan 2012 14:47:16 +0000 (+0100) Subject: Bluetooth: btusb: Free driver data on USB shutdown X-Git-Tag: v3.4-rc1~177^2~112^2~246 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8381088e39d03c55552b9dfb09b9b303e96acc78;p=pandora-kernel.git 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 Acked-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed