Bluetooth: btmrvl: change device pointer passed to dev_coredumpv
authorShengzhen Li <szli@marvell.com>
Wed, 19 Aug 2015 10:12:19 +0000 (03:12 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Aug 2015 19:00:36 +0000 (21:00 +0200)
This change ensures we will get driver name as 'btmrvl_sdio'
in udev event.

Signed-off-by: Shengzhen Li <szli@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmrvl_sdio.c

index 7c09762..b9978a7 100644 (file)
@@ -1376,8 +1376,7 @@ done:
 
        /* fw_dump_data will be free in device coredump release function
           after 5 min*/
-       dev_coredumpv(&priv->btmrvl_dev.hcidev->dev, fw_dump_data,
-                     fw_dump_len, GFP_KERNEL);
+       dev_coredumpv(&card->func->dev, fw_dump_data, fw_dump_len, GFP_KERNEL);
        BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump end");
 }