diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2011-02-16 23:28:53 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-03-17 15:34:40 -0400 |
commit | dffc55adfa2676a02a838d56a0cc4edd3809510c (patch) | |
tree | f894eee191b1b9b6c608012ccb65171c5b08d9df /drivers/mmc | |
parent | f5e0cec4495398b259b3ede7cbc3ce4bd0e1cef0 (diff) | |
download | linux-dffc55adfa2676a02a838d56a0cc4edd3809510c.tar.bz2 |
mmc: msm_sdcc: remove needless cache flush after dma_unmap_sg()
dma_unmap_sg() already flushes the cache, I don't get what this
code is doing here.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/msm_sdcc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 153ab977a013..67b08819556d 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_sdcc.c @@ -266,14 +266,6 @@ msmsdcc_dma_complete_tlet(unsigned long data) dma_unmap_sg(mmc_dev(host->mmc), host->dma.sg, host->dma.num_ents, host->dma.dir); - if (host->curr.user_pages) { - struct scatterlist *sg = host->dma.sg; - int i; - - for (i = 0; i < host->dma.num_ents; i++) - flush_dcache_page(sg_page(sg++)); - } - host->dma.sg = NULL; host->dma.busy = 0; |