]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Wed, 23 Nov 2022 01:48:05 +0000 (09:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:31 +0000 (11:41 +0100)
commitc93e2c5ddbe0f596f290fe3a564e408ab2217f96
tree984ae39d1e0ae0c837b2fb42cb3e9f1e007aa4ff
parent55ddf58d59461e9eb0641fc986a97829724681d3
rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()

[ Upstream commit d67c4dbd7f04b51f8e1315f6f7c2f7e009c5496e ]

The clk_disable_unprepare() should be called in the error handling
of clk_get_rate(), fix it.

Fixes: c80d01112db1 ("rtc: st: Add new driver for ST's LPC RTC")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lore.kernel.org/r/20221123014805.1993052-1-cuigaosheng1@huawei.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-st-lpc.c