aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/sh_mmcif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c
index 8e4aba90d6a4..61ad19ecfbf8 100644
--- a/drivers/mmc/host/sh_mmcif.c
+++ b/drivers/mmc/host/sh_mmcif.c
@@ -195,11 +195,11 @@ static void mmcif_dma_complete(void *arg)
195 195
196 if (host->data->flags & MMC_DATA_READ) 196 if (host->data->flags & MMC_DATA_READ)
197 dma_unmap_sg(host->chan_rx->device->dev, 197 dma_unmap_sg(host->chan_rx->device->dev,
198 host->data->sg, host->dma_sglen, 198 host->data->sg, host->data->sg_len,
199 DMA_FROM_DEVICE); 199 DMA_FROM_DEVICE);
200 else 200 else
201 dma_unmap_sg(host->chan_tx->device->dev, 201 dma_unmap_sg(host->chan_tx->device->dev,
202 host->data->sg, host->dma_sglen, 202 host->data->sg, host->data->sg_len,
203 DMA_TO_DEVICE); 203 DMA_TO_DEVICE);
204 204
205 complete(&host->dma_complete); 205 complete(&host->dma_complete);