spi: bcm2835: Release the DMA channel if probe fails after dma_init
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 12 Dec 2019 13:55:43 +0000 (15:55 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 16 Dec 2019 11:56:27 +0000 (11:56 +0000)
commit666224b43b4bd4612ce3b758c038f9bc5c5e3fcb
tree3c88b1814317df7f7f35ddd1670bc9a9a472f928
parentd947c9d26c2381cc10067e76e71bf9ddb0fedb8b
spi: bcm2835: Release the DMA channel if probe fails after dma_init

The DMA channel was not released if either devm_request_irq() or
devm_spi_register_controller() failed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20191212135550.4634-3-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c