spi: support spi without dma channel to use can_dma()
authorLeilk Liu <leilk.liu@mediatek.com>
Thu, 23 Jul 2015 09:10:40 +0000 (17:10 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jul 2015 17:35:00 +0000 (18:35 +0100)
commitc37f45b5f1cdfcdc351d88950b32658c970582ca
tree221c0166afca2716ef6dd52eb1a2c98396aa23a9
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
spi: support spi without dma channel to use can_dma()

For spi without dma channel and use can_dma(), it can
use master->dev for struct device.

Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c