spi: spi-cavium-thunderx: Add missing pci_release_regions()
authorChuhong Yuan <hslester96@gmail.com>
Fri, 6 Dec 2019 07:55:00 +0000 (15:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jan 2020 11:11:53 +0000 (12:11 +0100)
commit0c2cabe56e1186310af9b1bb25f6ad4a429052ce
tree1b72d7e0396fd99291948158f48c45ac11e39efd
parent84b33e7a2364bda397e9953782e7a6de8468aa90
spi: spi-cavium-thunderx: Add missing pci_release_regions()

[ Upstream commit a841e2853e1afecc2ee692b8cc5bff606bc84e4c ]

The driver forgets to call pci_release_regions() in probe failure
and remove.
Add the missed calls to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20191206075500.18525-1-hslester96@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-cavium-thunderx.c