i2c: i2c-mxs: fix compiler warnings
This commit is contained in:
parent
93549e63be
commit
251279ed47
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue