]> git.baikalelectronics.ru Git - kernel.git/commit
spi: micro: fix unreasonable clk_prepare_enable() on error in mchp_corespi_probe()
authorPeng Wu <wupeng58@huawei.com>
Sat, 11 Jun 2022 02:11:17 +0000 (02:11 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jun 2022 14:55:42 +0000 (15:55 +0100)
commit372d18aaee6d0515822d04816045ea361337b8ad
treeec50bcfc212123303536a7aab8f4f440a0a19dbe
parent4a5110a20349fa12783207eaa49de2ecc58a4e3d
spi: micro: fix unreasonable clk_prepare_enable() on error in mchp_corespi_probe()

Fix the unreasonable clk_prepare_enable() with clk_disable_unprepare()
before return from mchp_corespi_probe() in the error handling case.

Signed-off-by: Peng Wu <wupeng58@huawei.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20220611021117.40494-1-wupeng58@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-microchip-core.c