diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2020-02-26 11:14:20 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-03-02 16:09:04 +0100 |
commit | 1b73c0fffbc60cfc1bee337cd115ce8ccea5a49d (patch) | |
tree | 74578b84ddcfd93cae1a2991d944c43935084fec /drivers | |
parent | media: aspeed: add AST2600 support (diff) | |
download | linux-1b73c0fffbc60cfc1bee337cd115ce8ccea5a49d.tar.xz linux-1b73c0fffbc60cfc1bee337cd115ce8ccea5a49d.zip |
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: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/rcar_drif.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/platform/rcar_drif.c b/drivers/media/platform/rcar_drif.c index 02ee0e2a09e9..3d2451ac347d 100644 --- a/drivers/media/platform/rcar_drif.c +++ b/drivers/media/platform/rcar_drif.c @@ -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; } |