mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
i2c: mxs: suppress probe-deferral error message
[ Upstream commit 78a4471fa1 ]
During boot of I2SE Duckbill the kernel log contains a
confusing error:
Failed to request dma
This is caused by i2c-mxs tries to request a not yet available DMA
channel (-EPROBE_DEFER). So suppress this message by using
dev_err_probe().
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d09b0bf9ff
commit
4e66ba3cfb
@@ -842,8 +842,8 @@ static int mxs_i2c_probe(struct platform_device *pdev)
|
|||||||
/* Setup the DMA */
|
/* Setup the DMA */
|
||||||
i2c->dmach = dma_request_chan(dev, "rx-tx");
|
i2c->dmach = dma_request_chan(dev, "rx-tx");
|
||||||
if (IS_ERR(i2c->dmach)) {
|
if (IS_ERR(i2c->dmach)) {
|
||||||
dev_err(dev, "Failed to request dma\n");
|
return dev_err_probe(dev, PTR_ERR(i2c->dmach),
|
||||||
return PTR_ERR(i2c->dmach);
|
"Failed to request dma\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
platform_set_drvdata(pdev, i2c);
|
platform_set_drvdata(pdev, i2c);
|
||||||
|
|||||||
Reference in New Issue
Block a user