提交 6ddabcb1 编写于 作者: Y Yuan Can 提交者: Alexandre Belloni

rtc: gamecube: Add missing iounmap in gamecube_rtc_read_offset_from_sram

The hw_srnprot needs to be unmapped when gamecube_rtc_read_offset_from_sram returns.

Fixs: 86559400 (rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U)
Signed-off-by: NYuan Can <yuancan@huawei.com>
Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220511071354.46202-1-yuancan@huawei.com
上级 a37bdde6
...@@ -267,6 +267,7 @@ static int gamecube_rtc_read_offset_from_sram(struct priv *d) ...@@ -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); ret = regmap_read(d->regmap, RTC_SRAM_BIAS, &d->rtc_bias);
if (ret) { if (ret) {
pr_err("failed to get the RTC bias\n"); pr_err("failed to get the RTC bias\n");
iounmap(hw_srnprot);
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册