diff options
| -rw-r--r-- | drivers/i2c/busses/i2c-ismt.c | 2 | ||||
| -rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c index f573448d2132..e98e44e584a4 100644 --- a/drivers/i2c/busses/i2c-ismt.c +++ b/drivers/i2c/busses/i2c-ismt.c | |||
| @@ -584,7 +584,7 @@ static int ismt_access(struct i2c_adapter *adap, u16 addr, | |||
| 584 | 584 | ||
| 585 | /* unmap the data buffer */ | 585 | /* unmap the data buffer */ |
| 586 | if (dma_size != 0) | 586 | if (dma_size != 0) |
| 587 | dma_unmap_single(&adap->dev, dma_addr, dma_size, dma_direction); | 587 | dma_unmap_single(dev, dma_addr, dma_size, dma_direction); |
| 588 | 588 | ||
| 589 | if (unlikely(!time_left)) { | 589 | if (unlikely(!time_left)) { |
| 590 | dev_err(dev, "completion wait timed out\n"); | 590 | dev_err(dev, "completion wait timed out\n"); |
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 214bf2835d1f..8be3e6cb8fe6 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c | |||
| @@ -319,7 +319,7 @@ static void rcar_i2c_dma_unmap(struct rcar_i2c_priv *priv) | |||
| 319 | rcar_i2c_write(priv, ICFBSCR, TCYC06); | 319 | rcar_i2c_write(priv, ICFBSCR, TCYC06); |
| 320 | 320 | ||
| 321 | dma_unmap_single(chan->device->dev, sg_dma_address(&priv->sg), | 321 | dma_unmap_single(chan->device->dev, sg_dma_address(&priv->sg), |
| 322 | priv->msg->len, priv->dma_direction); | 322 | sg_dma_len(&priv->sg), priv->dma_direction); |
| 323 | 323 | ||
| 324 | priv->dma_direction = DMA_NONE; | 324 | priv->dma_direction = DMA_NONE; |
| 325 | } | 325 | } |
