Skip to content

Commit 78a4471

Browse files
lategoodbyewsakernel
authored andcommitted
i2c: mxs: suppress probe-deferral error message
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 <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 2ece093 commit 78a4471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/i2c-mxs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,8 @@ static int mxs_i2c_probe(struct platform_device *pdev)
826826
/* Setup the DMA */
827827
i2c->dmach = dma_request_chan(dev, "rx-tx");
828828
if (IS_ERR(i2c->dmach)) {
829-
dev_err(dev, "Failed to request dma\n");
830-
return PTR_ERR(i2c->dmach);
829+
return dev_err_probe(dev, PTR_ERR(i2c->dmach),
830+
"Failed to request dma\n");
831831
}
832832

833833
platform_set_drvdata(pdev, i2c);

0 commit comments

Comments
 (0)