spi: rockchip: fix probe deferral handling
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 31 Mar 2016 03:11:41 +0000 (11:11 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 31 Mar 2016 19:06:19 +0000 (12:06 -0700)
commite4c0e06f949b9493cafe952c3029576b47c2a7c4
treeb30d4fb514c2cd64f98edda74925d83feb65fda2
parentbb51537aa825e98b970c784f802e7e09f29df3ba
spi: rockchip: fix probe deferral handling

Use dma_request_chan instead of dma_request_slave_channel,
in this case we can check EPROBE_DEFER without static
warning.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c