Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Ujfalusi and committed by
Mauro Carvalho Chehab
1b73c0ff d737e7fe

+5 -1
+5 -1
drivers/media/platform/rcar_drif.c
··· 277 277 278 278 ch->dmach = dma_request_chan(&ch->pdev->dev, "rx"); 279 279 if (IS_ERR(ch->dmach)) { 280 - rdrif_err(sdr, "ch%u: dma channel req failed\n", i); 281 280 ret = PTR_ERR(ch->dmach); 281 + if (ret != -EPROBE_DEFER) 282 + rdrif_err(sdr, 283 + "ch%u: dma channel req failed: %pe\n", 284 + i, ch->dmach); 285 + ch->dmach = NULL; 282 286 goto dmach_error; 283 287 } 284 288