diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2022-08-23 15:07:02 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-08-23 22:27:58 +0200 |
commit | 509451ac03eb3afa4c4a32d4c11b1938f08de8e4 (patch) | |
tree | 3181eea199c128fab74776008b5dd3cc6a0126de /drivers/rtc/rtc-pcf8563.c | |
parent | rtc: k3: detect SoC to determine erratum fix (diff) | |
download | linux-509451ac03eb3afa4c4a32d4c11b1938f08de8e4.tar.xz linux-509451ac03eb3afa4c4a32d4c11b1938f08de8e4.zip |
rtc: gamecube: Always reset HW_SRNPROT after read
This register would fail to be reset if reading the RTC bias failed for
whichever reason. This commit reorganises the code around to
unconditionally write it back to its previous value, unmap it, and
return the result of regmap_read(), which makes it both simpler and more
correct in the error case.
Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220823130702.1046-1-linkmauve@linkmauve.fr
Diffstat (limited to 'drivers/rtc/rtc-pcf8563.c')
0 files changed, 0 insertions, 0 deletions