From: Linus Walleij Date: Thu, 10 Feb 2011 15:08:16 +0000 (+0100) Subject: mmc: atmel-mci: conform to DMA-API X-Git-Tag: v2.6.39-rc1~412^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ce4db313bca1e4e6ef3b448471f85d3e14a854;p=pandora-kernel.git 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 Signed-off-by: Nicolas Ferre Signed-off-by: Chris Ball --- Reading git-diff-tree failed