spi: fsl: add missing iounmap() on error in of_fsl_spi_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 1 Apr 2021 14:03:50 +0000 (22:03 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 8 Apr 2021 14:21:58 +0000 (15:21 +0100)
commit5fed9fe5b41aea58e5b32be506dc50c9ab9a0e4d
tree91b16a06f56967e2320b43d1f7c36101620fa5a4
parentd570838efb6fb3154cbd08ab1b22d1f6442b1e78
spi: fsl: add missing iounmap() on error in of_fsl_spi_probe()

Add the missing iounmap() before return from of_fsl_spi_probe()
in the error handling case.

Fixes: 0f0581b24bd0 ("spi: fsl: Convert to use CS GPIO descriptors")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210401140350.1677925-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-spi.c