Commit 795a9f50 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Neena Busireddy
Browse files

spi: core: Pass correct device to dma_map_sg()



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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
(cherry picked from commit 3fc25421)
(cherry picked from commit ff593afabbe51959293cf8434bbe72a3db24dda5)
parent 11d23b99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment