diff options
author | Alexander Stein <alexander.stein@ew.tq-group.com> | 2023-01-31 10:53:40 +0100 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2023-03-06 10:10:24 +0800 |
commit | 189cfa849d22c6ec39e7fac8d573075b35f865a2 (patch) | |
tree | 85838c897cd5417805f3c7c5045da1ef405fb024 /drivers/firmware/imx | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) |
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>
Diffstat (limited to 'drivers/firmware/imx')
-rw-r--r-- | drivers/firmware/imx/imx-scu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/firmware/imx/imx-scu.c b/drivers/firmware/imx/imx-scu.c index dca79caccd01..47db49911e7b 100644 --- a/drivers/firmware/imx/imx-scu.c +++ b/drivers/firmware/imx/imx-scu.c @@ -310,9 +310,8 @@ static int imx_scu_probe(struct platform_device *pdev) sc_chan->ch = mbox_request_channel_byname(cl, chan_name); if (IS_ERR(sc_chan->ch)) { ret = PTR_ERR(sc_chan->ch); - if (ret != -EPROBE_DEFER) - dev_err(dev, "Failed to request mbox chan %s ret %d\n", - chan_name, ret); + dev_err_probe(dev, ret, "Failed to request mbox chan %s\n", + chan_name); kfree(chan_name); return ret; } |