From: Geert Uytterhoeven Date: Thu, 10 Jul 2014 13:29:33 +0000 (+0200) Subject: spi: core: Pass correct device to dma_map_sg() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~157^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc25421f55e36426f5e5cc227cacc840493a943;p=pandora-kernel.git 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: Geert Uytterhoeven Signed-off-by: Mark Brown --- Reading git-diff-tree failed