]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Bluetooth: hci_bcm: Correct context of IRQ polarity message
authorIan W MORRISON <ianwmorrison@gmail.com>
Sat, 7 Oct 2017 06:16:08 +0000 (17:16 +1100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 9 Oct 2017 18:03:19 +0000 (20:03 +0200)
As the overwriting of IRQ polarity to active low occurs during the driver
probe using 'bt_dev_warn' to display the warning results in '(null)' being
displayed for the device. This patch uses 'dev_warn' to correctly display
the device in the warning instead.

Signed-off-by: Ian W MORRISON <ianwmorrison@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c

index ab1455e63b9270724fd4c1d6abae0afb36a4b516..d9d0fc09acdbf8616a56908cfd75331bc21434f3 100644 (file)
@@ -832,7 +832,7 @@ static int bcm_acpi_probe(struct bcm_device *dev)
 
        dmi_id = dmi_first_match(bcm_active_low_irq_dmi_table);
        if (dmi_id) {
-               bt_dev_warn(dev, "%s: Overwriting IRQ polarity to active low",
+               dev_warn(dev->dev, "%s: Overwriting IRQ polarity to active low",
                            dmi_id->ident);
                dev->irq_active_low = true;
        }