diff options
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |