Skip to content

Commit 10004f8

Browse files
agnersholtmann
authored andcommitted
Bluetooth: btmrvl: improve printk messages
Use dev_* variants to print messages in drivers. Signed-off-by: Stefan Agner <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 5e05353 commit 10004f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/bluetooth/btmrvl_sdio.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ static const struct of_device_id btmrvl_sdio_of_match_table[] = {
6262
static irqreturn_t btmrvl_wake_irq_bt(int irq, void *priv)
6363
{
6464
struct btmrvl_sdio_card *card = priv;
65+
struct device *dev = &card->func->dev;
6566
struct btmrvl_plt_wake_cfg *cfg = card->plt_wake_cfg;
6667

67-
pr_info("%s: wake by bt\n", __func__);
68+
dev_info(dev, "wake by bt\n");
6869
cfg->wake_by_bt = true;
6970
disable_irq_nosync(irq);
7071

71-
pm_wakeup_event(&card->func->dev, 0);
72+
pm_wakeup_event(dev, 0);
7273
pm_system_wakeup();
7374

7475
return IRQ_HANDLED;
@@ -87,7 +88,7 @@ static int btmrvl_sdio_probe_of(struct device *dev,
8788

8889
if (!dev->of_node ||
8990
!of_match_node(btmrvl_sdio_of_match_table, dev->of_node)) {
90-
pr_err("sdio platform data not available\n");
91+
dev_err(dev, "sdio platform data not available\n");
9192
return -1;
9293
}
9394

0 commit comments

Comments
 (0)