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

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 <stefan.wahren@i2se.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>

authored by

Stefan Wahren and committed by
Wolfram Sang
78a4471f 2ece0930

+2 -2
+2 -2
drivers/i2c/busses/i2c-mxs.c
··· 826 826 /* Setup the DMA */ 827 827 i2c->dmach = dma_request_chan(dev, "rx-tx"); 828 828 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"); 831 831 } 832 832 833 833 platform_set_drvdata(pdev, i2c);