spi: bcm-qspi: Fix missing clk_disable_unprepare() on error in bcm_qspi_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 18 Oct 2021 07:34:13 +0000 (15:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:20 +0000 (19:16 +0100)
commit51421f89b90909c3e86c06a773ff1b3e056489c8
tree1e395611133388a8b745b60d27103cc069de664b
parent6039fcd858964e4aea75c3875c9262b793c441ab
spi: bcm-qspi: Fix missing clk_disable_unprepare() on error in bcm_qspi_probe()

[ Upstream commit ca9b8f56ec089d3a436050afefd17b7237301f47 ]

Fix the missing clk_disable_unprepare() before return
from bcm_qspi_probe() in the error handling case.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20211018073413.2029081-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-bcm-qspi.c