]> git.baikalelectronics.ru Git - kernel.git/commit
spi: orion: Fix a resource leak if the optional "axi" clk is deferred
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Thu, 25 Jan 2018 20:16:17 +0000 (21:16 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jan 2018 11:43:39 +0000 (11:43 +0000)
commit77d29bf3fbc4354590c1661d198daa69c46cdd3c
tree395c0f3a7007bce1eb1dea12c748b861c0b6f7d2
parent478e76e647aa36c33c4f7f2001c8bfc51f3b7f90
spi: orion: Fix a resource leak if the optional "axi" clk is deferred

If the optional "axi" clk is deferred, we still need to undo some
initialisation. Especially 'master' must be released. It will be
reallocated the next time 'orion_spi_probe()' is called.

Add a new label to clean what needs to be cleaned and rename another
label to improve the names used.

Fixes: 478e76e647aa ("spi: orion: Fix clock resource by adding an optional bus clock")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c