spi: rockchip: rockchip_spi_prepare_dma return 1 if it is ok
authorHuibin Hong <huibin.hong@rock-chips.com>
Wed, 12 Jul 2017 02:22:18 +0000 (10:22 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 12 Jul 2017 06:38:09 +0000 (14:38 +0800)
commit0e366d11fe4e7d53543de2e52fd9f44f908effea
tree1c934c7f85ac274a1bf3da924f77f016330c1294
parent5d4055911989e5217b609c75fda388d43b9e97c3
spi: rockchip: rockchip_spi_prepare_dma return 1 if it is ok

If rockchip_spi_prepare_dma return 0, spi_transfer_one_message
won't wait for the dma complete event. Which may cause unknown
error.

Change-Id: Idf51a737bbd9fa9b9d1ae749636fe524de1cbfa9
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
drivers/spi/spi-rockchip.c