diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-04-03 05:49:12 +0000 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-05-19 12:08:17 +0200 |
commit | b520cbe5be37b1b9b401c0b6ecbdae32575273db (patch) | |
tree | ee4314e7731321835081d05f1d3ce6e8834d1f6d /Kconfig | |
parent | d3b43eb505bffb8e4cdf6800c15660c001553fe6 (diff) |
rtc: ftrtc010: Fix error handling in ftrtc010_rtc_probe
In the error handling path, the clk_prepare_enable() function
call should be balanced by a corresponding 'clk_disable_unprepare()'
call , as already done in the remove function.
clk_disable_unprepare calls clk_disable() and clk_unprepare().
They will use IS_ERR_OR_NULL to check the argument.
Fixes: ac05fba39cc5 ("rtc: gemini: Add optional clock handling")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220403054912.31739-1-linmq006@gmail.com
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions