OSDN Git Service

spi: bcm2835: Fix error return code in bcm2835_dma_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 May 2020 12:56:07 +0000 (12:56 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 May 2020 14:55:14 +0000 (15:55 +0100)
commitdd4441ab1fa1e2787a5f218f92d8ead1aa5ce6b5
tree827a0b77cb279d65578ceef9c837ba736cd16007
parent5b684514af9052fdbaa60895620f75928a134196
spi: bcm2835: Fix error return code in bcm2835_dma_init()

Fix to return negative error code -ENOMEM from the dma mapping error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200506125607.90952-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c