mmc: omap_hsmmc: use original sg_len for dma_unmap_sg
authorPer Forlin <per.forlin@linaro.org>
Fri, 17 Jun 2011 18:14:21 +0000 (20:14 +0200)
committerChris Ball <cjb@laptop.org>
Sat, 25 Jun 2011 22:51:28 +0000 (18:51 -0400)
commita9120c33ffbb0b3448d833dae392edc90d6cfac2
tree8ea12aea362f9e5980926c1f1b2faae1425bd67b
parent4a3dc6ef344ccfe80bf986aec0b05f51af000720
mmc: omap_hsmmc: use original sg_len for dma_unmap_sg

Don't use the returned sg_len from dma_map_sg() as inparameter
to dma_unmap_sg(). Use the original sg_len for both dma_map_sg
and dma_unmap_sg according to the documentation in DMA-API.txt.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/omap_hsmmc.c