Skip to content

Commit 8da4988

Browse files
MrVanJassi Brar
authored andcommitted
mailbox: Use dev_err when there is error
Use dev_err to show the error log instead of using dev_dbg. Signed-off-by: Peng Fan <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 9fcebcb commit 8da4988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mailbox/mailbox.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static int __mbox_bind_client(struct mbox_chan *chan, struct mbox_client *cl)
322322
int ret;
323323

324324
if (chan->cl || !try_module_get(chan->mbox->dev->driver->owner)) {
325-
dev_dbg(dev, "%s: mailbox not free\n", __func__);
325+
dev_err(dev, "%s: mailbox not free\n", __func__);
326326
return -EBUSY;
327327
}
328328

@@ -413,7 +413,7 @@ struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index)
413413
ret = of_parse_phandle_with_args(dev->of_node, "mboxes", "#mbox-cells",
414414
index, &spec);
415415
if (ret) {
416-
dev_dbg(dev, "%s: can't parse \"mboxes\" property\n", __func__);
416+
dev_err(dev, "%s: can't parse \"mboxes\" property\n", __func__);
417417
return ERR_PTR(ret);
418418
}
419419

0 commit comments

Comments
 (0)