aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVernon Sauder <vernoninhand@gmail.com>2008-12-29 19:21:28 -0500
committerPierre Ossman <drzeus@drzeus.cx>2008-12-31 12:57:02 -0500
commitc00a46abd4d45a67ff62f4ff6d4f839dff38b877 (patch)
treecb192ccb5b004681055db9b7aa5f52ffcd2875be
parent6a79e391df295bd7c2aa1309ea5031f361c197fd (diff)
pxamci: fix dma_unmap_sg length
dma_unmap_sg should be given the same length as dma_map_sg, not the value returned from dma_map_sg Signed-off-by: Vernon Sauder <vsauder@inhand.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
-rw-r--r--drivers/mmc/host/pxamci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c
index f88cc7406354..3c5483b75da4 100644
--- a/drivers/mmc/host/pxamci.c
+++ b/drivers/mmc/host/pxamci.c
@@ -283,7 +283,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
283 return 0; 283 return 0;
284 284
285 DCSR(host->dma) = 0; 285 DCSR(host->dma) = 0;
286 dma_unmap_sg(mmc_dev(host->mmc), data->sg, host->dma_len, 286 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
287 host->dma_dir); 287 host->dma_dir);
288 288
289 if (stat & STAT_READ_TIME_OUT) 289 if (stat & STAT_READ_TIME_OUT)