rtc: mxc_v2: Add missing clk_disable_unprepare()
authorGUO Zihua <guozihua@huawei.com>
Tue, 22 Nov 2022 08:50:46 +0000 (16:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:55 +0000 (13:32 +0100)
commit71e00044628125f9ff8d3114edf1f05baed8f529
tree5a5c40ff56bf4128a8b87f3a13c59175a8b80abc
parenta7316d07f0874a7c34437e973cdbcd017eee0b89
rtc: mxc_v2: Add missing clk_disable_unprepare()

[ Upstream commit 55d5a86618d3b1a768bce01882b74cbbd2651975 ]

The call to clk_disable_unprepare() is left out in the error handling of
devm_rtc_allocate_device. Add it back.

Fixes: 5490a1e018a4 ("rtc: mxc_v2: fix possible race condition")
Signed-off-by: GUO Zihua <guozihua@huawei.com>
Link: https://lore.kernel.org/r/20221122085046.21689-1-guozihua@huawei.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-mxc_v2.c