Bluetooth: btwilink: Remove empty destruct cb
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 7 Jan 2012 14:47:12 +0000 (15:47 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:23 +0000 (17:01 +0200)
The destruct cb is optional so remove our empty dummy cb.

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>
drivers/bluetooth/btwilink.c

index b5f83b44a0cd18a42f32aa8b4398ea69b5b9ba2b..da9cf6a6e8ac9de810022e7b4e245c431a3e7b1b 100644 (file)
@@ -291,14 +291,6 @@ static int ti_st_send_frame(struct sk_buff *skb)
        return 0;
 }
 
-static void ti_st_destruct(struct hci_dev *hdev)
-{
-       BT_DBG("%s", hdev->name);
-       /* do nothing here, since platform remove
-        * would free the hdev->driver_data
-        */
-}
-
 static int bt_ti_probe(struct platform_device *pdev)
 {
        static struct ti_st *hst;
@@ -325,7 +317,6 @@ static int bt_ti_probe(struct platform_device *pdev)
        hdev->close = ti_st_close;
        hdev->flush = NULL;
        hdev->send = ti_st_send_frame;
-       hdev->destruct = ti_st_destruct;
        hdev->owner = THIS_MODULE;
 
        err = hci_register_dev(hdev);