spi: spi-axi: Free resources on error path
commit9620ca90115d4bd700f05862d3b210a266a66efe
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 9 Jan 2017 00:02:47 +0000 (9 01:02 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Jan 2017 11:20:46 +0000 (9 11:20 +0000)
tree4d35f3658f3f65aac935d50140d1919d66ba9992
parentfafd67940774733fa97f4b09412aea6981b82e0a
spi: spi-axi: Free resources on error path

We should go to 'err_put_master' here instead of returning directly.
Otherwise a call to 'spi_master_put' is missing.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c