From: Ian W MORRISON Date: Sat, 7 Oct 2017 06:16:08 +0000 (+1100) Subject: Bluetooth: hci_bcm: Correct context of IRQ polarity message X-Git-Tag: v4.15-rc1~84^2~190^2~19 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e8bfe868cf2cf364f3f52df8fa01aa6d28927aaf;p=linux-block.git Bluetooth: hci_bcm: Correct context of IRQ polarity message 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 Reviewed-by: Hans de Goede Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index ab1455e63b92..d9d0fc09acdb 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -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; }