Skip to content
Commit 038dfd67 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

rtc: rv3032: fix error handling in rv3032_clkout_set_rate()

[ Upstream commit c3336b8a ]

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

Fixes: 2eeaa532

 ("rtc: rv3032: Add a driver for Microcrystal RV-3032")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211012101028.GT2083@kadam
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5061e102
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment