mmc: atmel-mci: conform to DMA-API
commit88ce4db313bca1e4e6ef3b448471f85d3e14a854
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Feb 2011 15:08:16 +0000 (10 16:08 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 15 Mar 2011 17:49:05 +0000 (15 13:49 -0400)
tree1d028208211c7dc7af14a79828494ade9c97cf5d
parent266ac3f297adb72fb6c34949a38337c6fad4c7a6
mmc: atmel-mci: conform to DMA-API

Fixes the following:
- It is perfectly legal for the dma_map_sg() to return fewer
  entries than were passed in.
- Supply the returned numer of (possibly coalesced) entries to
  the device_pre_slave_sg() function.
- Use the proper original sg_len when unmapping the sglist
  in the error path.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/atmel-mci.c