spi: sh-msiof: Use correct device for DMA mapping with IOMMU
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 11 Jul 2014 15:56:22 +0000 (17:56 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:15:34 +0000 (11:15 +0100)
commitbf32c90718247500f8ffe2be9efae2850f073149
tree68ff22749e95062e3b26e078932f4f7b426fadb5
parent10fcd0143d6b8f9f40bc2685722379a6ad98e8b5
spi: sh-msiof: Use correct device for DMA mapping with IOMMU

To function correctly in the presence of an IOMMU, the DMA buffers must be
mapped using the DMA channel's device instead of the MSIOF platform
device's device.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 5dabcf2f27ded864cf79204c4a3cca1516b66026)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/spi/spi-sh-msiof.c