summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-rc5t583.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-rc5t583.c')
-rw-r--r--drivers/rtc/rtc-rc5t583.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-rc5t583.c b/drivers/rtc/rtc-rc5t583.c
index f28d57788951..68ce77414bdc 100644
--- a/drivers/rtc/rtc-rc5t583.c
+++ b/drivers/rtc/rtc-rc5t583.c
@@ -128,6 +128,7 @@ static int rc5t583_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
return ret;
}
+ alm->time.tm_sec = 0;
alm->time.tm_min = bcd2bin(alarm_data[0]);
alm->time.tm_hour = bcd2bin(alarm_data[1]);
alm->time.tm_mday = bcd2bin(alarm_data[2]);