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)
committerMark Brown <broonie@kernel.org>
Tue, 26 Oct 2021 19:03:57 +0000 (20:03 +0100)
commitca9b8f56ec089d3a436050afefd17b7237301f47
tree5489b975144179ed3cc58be3aa910f078ba6d357
parent3340ec49ba2c294a163d05319054c8506a8f30d9
spi: bcm-qspi: Fix missing clk_disable_unprepare() on error in bcm_qspi_probe()

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>
drivers/spi/spi-bcm-qspi.c