spi: rockchip: check requesting dma channel with EPROBE_DEFER
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 9 Mar 2016 08:11:32 +0000 (16:11 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 9 Mar 2016 09:10:18 +0000 (16:10 +0700)
commit61cadcf46cfdb9f7eec70527968c2b91e9823786
tree0f150c8bbba7b6a890c0cb8530d5448a0926ae35
parent557b7ea34b9a10a5e13f4d7fd58ac965d801e3bd
spi: rockchip: check requesting dma channel with EPROBE_DEFER

Let's defer probing the driver if the return value of
dma_request_slave_channel is ERR_PTR(-EPROBE_DEFER) instead
of disabling dma capability directly.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c