i2c: i2c-mxs: fix compiler warnings

This commit is contained in:
Suguru Saito 2021-12-27 00:11:20 +09:00
parent 93549e63be
commit 251279ed47
1 changed files with 2 additions and 2 deletions

View File

@ -842,10 +842,10 @@ static int mxs_i2c_probe(struct platform_device *pdev)
/* Setup the DMA */
i2c->dmach = dma_request_chan(dev, "rx-tx");
if (IS_ERR(i2c->dmach)) {
if (i2c->dmach == -EPROBE_DEFER)
if (PTR_ERR(i2c->dmach) == -EPROBE_DEFER)
return -EPROBE_DEFER;
dev_err(dev, "Failed to request dma: %d\n", i2c->dmach);
dev_err(dev, "Failed to request dma: %ld\n", PTR_ERR(i2c->dmach));
return -ENODEV;
}