From: Per Forlin Date: Mon, 29 Aug 2011 13:35:59 +0000 (+0200) Subject: mmc: mmci: simplify err check in mmci_post_request X-Git-Tag: v3.2-rc1~129^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e3336b1e4378f7d205af9b25dcc9e645c8a9609;p=pandora-kernel.git mmc: mmci: simplify err check in mmci_post_request The error condition indicates that mmci_post_request() should cleanup after the mmci_pre_request(). In this case the resources allocated by device_prep_slave_sg() are freed by calling dmaengine_terminate_all(). dma_unmap_sg() should always be performed if the host_cookie is set. Signed-off-by: Per Forlin Acked-by: Linus Walleij Signed-off-by: Chris Ball --- Reading git-diff-tree failed