Commit 1b73c0ff authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mauro Carvalho Chehab

media: rcar_drif: Do not print error in case of EPROBE_DEFER for dma channel

If the dma channel request error code is EPROBE_DEFER there is no need to
print error message.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent d737e7fe
......@@ -277,8 +277,12 @@ static int rcar_drif_alloc_dmachannels(struct rcar_drif_sdr *sdr)
ch->dmach = dma_request_chan(&ch->pdev->dev, "rx");
if (IS_ERR(ch->dmach)) {
rdrif_err(sdr, "ch%u: dma channel req failed\n", i);
ret = PTR_ERR(ch->dmach);
if (ret != -EPROBE_DEFER)
rdrif_err(sdr,
"ch%u: dma channel req failed: %pe\n",
i, ch->dmach);
ch->dmach = NULL;
goto dmach_error;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment