]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv3032: fix error handling in rv3032_clkout_set_rate()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Oct 2021 10:10:28 +0000 (13:10 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 15 Oct 2021 19:07:23 +0000 (21:07 +0200)
commita9dc96d83a28010fc0d7918a75edb0ea487a56a1
tree707056c38198921586661370bbd8ffc7193ced01
parent7af36b15ce10de7b92984c156f5afc8cdc5d4e47
rtc: rv3032: fix error handling in rv3032_clkout_set_rate()

Do not call rv3032_exit_eerd() if the enter function fails but don't
forget to call the exit when the enter succeeds.

Fixes: 7555505ef7da ("rtc: rv3032: Add a driver for Microcrystal RV-3032")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211012101028.GT2083@kadam
drivers/rtc/rtc-rv3032.c