rtc: stm32: add missed clk_disable_unprepare in error path of resume
authorChuhong Yuan <hslester96@gmail.com>
Thu, 5 Dec 2019 16:06:55 +0000 (00:06 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 10 Dec 2019 13:29:23 +0000 (14:29 +0100)
commitcf33e911f500f6e628f283e101c0240c79e0b5da
tree0281fe9d2fe904b4490adebca9e302775ec899e8
parent751438bc0f10f75633144acd6ff145f7260706d5
rtc: stm32: add missed clk_disable_unprepare in error path of resume

The resume() forgets to call clk_disable_unprepare() when failed.
Add the missed call to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Amelie Delaunay <amelie.delaunay@st.com>
Link: https://lore.kernel.org/r/20191205160655.32188-1-hslester96@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-stm32.c