spi: pl022: Fix incorrect dma_unmap_sg
authorRay Jui <rjui@broadcom.com>
Thu, 9 Oct 2014 18:44:54 +0000 (11:44 -0700)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:05:00 +0000 (17:05 +0800)
commit37cccefbb8dd18738beb6df75c1537a86750c6ce
tree0300b1b872c2fc1eb1249cabc5db08af8fabbe2b
parent30e55da73d161504f610115a2de141137e69e924
spi: pl022: Fix incorrect dma_unmap_sg

commit 3ffa6158f002e096d28ede71be4e0ee8ab20baa2 upstream.

When mapped RX DMA entries are unmapped in an error condition when DMA
is firstly configured in the driver, the number of TX DMA entries was
passed in, which is incorrect

Signed-off-by: Ray Jui <rjui@broadcom.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/spi/spi-pl022.c