projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'rtc-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
[linux-2.6-microblaze.git]
/
drivers
/
rtc
/
rtc-st-lpc.c
diff --git
a/drivers/rtc/rtc-st-lpc.c
b/drivers/rtc/rtc-st-lpc.c
index
5fe0218
..
49474a3
100644
(file)
--- a/
drivers/rtc/rtc-st-lpc.c
+++ b/
drivers/rtc/rtc-st-lpc.c
@@
-162,10
+162,6
@@
static int st_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *t)
now_secs = rtc_tm_to_time64(&now);
alarm_secs = rtc_tm_to_time64(&t->time);
- /* Invalid alarm time */
- if (now_secs > alarm_secs)
- return -EINVAL;
-
memcpy(&rtc->alarm, t, sizeof(struct rtc_wkalrm));
/* Now many secs to fire */