projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a37bdde
)
rtc: gamecube: Add missing iounmap in gamecube_rtc_read_offset_from_sram
author
Yuan Can
<yuancan@huawei.com>
Wed, 11 May 2022 07:13:54 +0000
(07:13 +0000)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Wed, 18 May 2022 12:52:17 +0000
(14:52 +0200)
The hw_srnprot needs to be unmapped when gamecube_rtc_read_offset_from_sram returns.
Fixs:
86559400b3ef9d
(rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U)
Signed-off-by: Yuan Can <yuancan@huawei.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link:
https://lore.kernel.org/r/20220511071354.46202-1-yuancan@huawei.com
drivers/rtc/rtc-gamecube.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-gamecube.c
b/drivers/rtc/rtc-gamecube.c
index 18ca3b38b2d0474f58f4a56b3ae94d5afb3f86d9..c2717bb52b2bee9e5996c543ba2212f657bc09d2 100644
(file)
--- a/
drivers/rtc/rtc-gamecube.c
+++ b/
drivers/rtc/rtc-gamecube.c
@@
-267,6
+267,7
@@
static int gamecube_rtc_read_offset_from_sram(struct priv *d)
ret = regmap_read(d->regmap, RTC_SRAM_BIAS, &d->rtc_bias);
if (ret) {
pr_err("failed to get the RTC bias\n");
+ iounmap(hw_srnprot);
return -1;
}