diff options
| -rw-r--r-- | drivers/i2c/busses/i2c-cpm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 8a8ca945561b..72b539c4f561 100644 --- a/drivers/i2c/busses/i2c-cpm.c +++ b/drivers/i2c/busses/i2c-cpm.c | |||
| @@ -540,7 +540,9 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm) | |||
| 540 | } | 540 | } |
| 541 | out_be32(&rbdf[i].cbd_bufaddr, ((cpm->rxdma[i] + 1) & ~1)); | 541 | out_be32(&rbdf[i].cbd_bufaddr, ((cpm->rxdma[i] + 1) & ~1)); |
| 542 | 542 | ||
| 543 | cpm->txbuf[i] = (unsigned char *)dma_alloc_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, &cpm->txdma[i], GFP_KERNEL); | 543 | cpm->txbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev, |
| 544 | CPM_MAX_READ + 1, | ||
| 545 | &cpm->txdma[i], GFP_KERNEL); | ||
| 544 | if (!cpm->txbuf[i]) { | 546 | if (!cpm->txbuf[i]) { |
| 545 | ret = -ENOMEM; | 547 | ret = -ENOMEM; |
| 546 | goto out_muram; | 548 | goto out_muram; |
