Skip to content
Snippets Groups Projects
Commit 998bcae4 authored by Vasyl Gomonovych's avatar Vasyl Gomonovych Committed by Wolfram Sang
Browse files

i2c: cpm: remove casting dma_alloc


Generated by:  alloc_cast.cocci

Signed-off-by: default avatarVasyl Gomonovych <gomonovych@gmail.com>
Acked-by: default avatarJochen Friedrich <jochen@scram.de>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 00386171
No related branches found
No related tags found
No related merge requests found
...@@ -540,7 +540,9 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm) ...@@ -540,7 +540,9 @@ static int cpm_i2c_setup(struct cpm_i2c *cpm)
} }
out_be32(&rbdf[i].cbd_bufaddr, ((cpm->rxdma[i] + 1) & ~1)); out_be32(&rbdf[i].cbd_bufaddr, ((cpm->rxdma[i] + 1) & ~1));
cpm->txbuf[i] = (unsigned char *)dma_alloc_coherent(&cpm->ofdev->dev, CPM_MAX_READ + 1, &cpm->txdma[i], GFP_KERNEL); cpm->txbuf[i] = dma_alloc_coherent(&cpm->ofdev->dev,
CPM_MAX_READ + 1,
&cpm->txdma[i], GFP_KERNEL);
if (!cpm->txbuf[i]) { if (!cpm->txbuf[i]) {
ret = -ENOMEM; ret = -ENOMEM;
goto out_muram; goto out_muram;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment