Skip to content

Commit 189cfa8

Browse files
tq-steinaShawn Guo
authored andcommitted
firmware: imx: scu: use dev_err_probe
This simplifies the code and silences -517 error messages. Also the reason is listed in /sys/kernel/debug/devices_deferred. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent fe15c26 commit 189cfa8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/firmware/imx/imx-scu.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ static int imx_scu_probe(struct platform_device *pdev)
310310
sc_chan->ch = mbox_request_channel_byname(cl, chan_name);
311311
if (IS_ERR(sc_chan->ch)) {
312312
ret = PTR_ERR(sc_chan->ch);
313-
if (ret != -EPROBE_DEFER)
314-
dev_err(dev, "Failed to request mbox chan %s ret %d\n",
315-
chan_name, ret);
313+
dev_err_probe(dev, ret, "Failed to request mbox chan %s\n",
314+
chan_name);
316315
kfree(chan_name);
317316
return ret;
318317
}

0 commit comments

Comments
 (0)