Skip to content

Commit 877afe1

Browse files
tq-steinanmenon
authored andcommitted
soc: ti: wkup_m3_ipc: Use dev_err_probe
During probe the mailbox channel might not yet be available. Use dev_err_probe to silence this deferred probe error message: wkup_m3_ipc 44e11324.wkup_m3_ipc: IPC Request for A8->M3 Channel failed! -517 Signed-off-by: Alexander Stein <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Nishanth Menon <[email protected]>
1 parent 9b808f7 commit 877afe1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

drivers/soc/ti/wkup_m3_ipc.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,9 @@ static int wkup_m3_ipc_probe(struct platform_device *pdev)
644644

645645
m3_ipc->mbox = mbox_request_channel(&m3_ipc->mbox_client, 0);
646646

647-
if (IS_ERR(m3_ipc->mbox)) {
648-
dev_err(dev, "IPC Request for A8->M3 Channel failed! %ld\n",
649-
PTR_ERR(m3_ipc->mbox));
650-
return PTR_ERR(m3_ipc->mbox);
651-
}
647+
if (IS_ERR(m3_ipc->mbox))
648+
return dev_err_probe(dev, PTR_ERR(m3_ipc->mbox),
649+
"IPC Request for A8->M3 Channel failed!\n");
652650

653651
if (of_property_read_u32(dev->of_node, "ti,rproc", &rproc_phandle)) {
654652
dev_err(&pdev->dev, "could not get rproc phandle\n");

0 commit comments

Comments
 (0)