Bluetooth: btmrvl: improve printk messages

This change “Bluetooth: btmrvl: improve printk messages” in Linux kernel is authored by Stefan Agner <stefan [at]> on Fri Jan 11 21:56:56 2019 +0100.

Bluetooth: btmrvl: improve printk messages

Use dev_* variants to print messages in drivers.

Signed-off-by: Stefan Agner <>
Signed-off-by: Marcel Holtmann <>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit 10004f8.

There are 7 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/bluetooth/btmrvl_sdio.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index fb3d039..6f9a173 100644
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
@@ -62,13 +62,14 @@
 static irqreturn_t btmrvl_wake_irq_bt(int irq, void *priv)
 	struct btmrvl_sdio_card *card = priv;
+	struct device *dev = &card->func->dev;
 	struct btmrvl_plt_wake_cfg *cfg = card->plt_wake_cfg;
-	pr_info("%s: wake by btn", __func__);
+	dev_info(dev, "wake by btn");
 	cfg->wake_by_bt = true;
-	pm_wakeup_event(&card->func->dev, 0);
+	pm_wakeup_event(dev, 0);
 	return IRQ_HANDLED;
@@ -87,7 +88,7 @@ static int btmrvl_sdio_probe_of(struct device *dev,
 	if (!dev->of_node ||
 	    !of_match_node(btmrvl_sdio_of_match_table, dev->of_node)) {
-		pr_err("sdio platform data not availablen");
+		dev_err(dev, "sdio platform data not availablen");
 		return -1;

The commit for this change in Linux stable tree is 10004f8 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *