projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9f50e0
)
rtc: mc146818-lib: change return values of mc146818_get_time()
author
Mateusz Jończyk
<mat.jonczyk@o2.pl>
Fri, 10 Dec 2021 20:01:24 +0000
(21:01 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:14 +0000
(20:59 +0200)
[ Upstream commit
d35786b3a28dee20b12962ae2dd365892a99ed1a
]
No function is checking mc146818_get_time() return values yet, so
correct them to make them more customary.
Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link:
https://lore.kernel.org/r/20211210200131.153887-3-mat.jonczyk@o2.pl
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-mc146818-lib.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-mc146818-lib.c
b/drivers/rtc/rtc-mc146818-lib.c
index
04b05e3
..
bd48cee
100644
(file)
--- a/
drivers/rtc/rtc-mc146818-lib.c
+++ b/
drivers/rtc/rtc-mc146818-lib.c
@@
-25,7
+25,7
@@
again:
if (WARN_ON_ONCE((CMOS_READ(RTC_VALID) & 0x40) != 0)) {
spin_unlock_irqrestore(&rtc_lock, flags);
memset(time, 0xff, sizeof(*time));
- return
0
;
+ return
-EIO
;
}
/*
@@
-116,7
+116,7
@@
again:
time->tm_mon--;
- return
RTC_24H
;
+ return
0
;
}
EXPORT_SYMBOL_GPL(mc146818_get_time);