Skip to content

Commit

Permalink
media: rcar_drif: Do not print error in case of EPROBE_DEFER for dma …
Browse files Browse the repository at this point in the history
…channel

If the dma channel request error code is EPROBE_DEFER there is no need to
print error message.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
  • Loading branch information
Peter Ujfalusi authored and Mauro Carvalho Chehab committed Mar 2, 2020
1 parent d737e7f commit 1b73c0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/platform/rcar_drif.c
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 1b73c0f

Please sign in to comment.