mmc: sh_mmcif: unmap with the proper sglen
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Feb 2011 15:09:40 +0000 (16:09 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 15 Mar 2011 17:49:12 +0000 (13:49 -0400)
commit9dc3fb5e4584630c50f7a5405efe9835d321ad44
tree9e8e8a3758d3a08d6c4ff35ae0983674fbc4cb83
parent1ed828dbb4a90f273b2a3cc70c9c28306427ea7c
mmc: sh_mmcif: unmap with the proper sglen

According to the DMA-API you shall unmap the sglists with the same
sglist length as passed into the mapping function, not the
returned value from the mapping function.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c