spi: core: Pass correct device to dma_map_sg()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 10 Jul 2014 13:29:33 +0000 (15:29 +0200)
committerMark Brown <broonie@linaro.org>
Fri, 11 Jul 2014 12:57:10 +0000 (13:57 +0100)
According to Documentation/dmaengine.txt, scatterlists must be mapped
using the DMA struct device.

However, "dma_chan.dev->device" is the sysfs class device's device.
Use "dma_chan.device->dev" instead, which is the real DMA device's device.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found