diff options
-rw-r--r-- | drivers/rtc/rtc-at91rm9200.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c index e221b78b6f10..e84f5ec4faf6 100644 --- a/drivers/rtc/rtc-at91rm9200.c +++ b/drivers/rtc/rtc-at91rm9200.c | |||
@@ -208,7 +208,6 @@ static int at91_rtc_readalarm(struct device *dev, struct rtc_wkalrm *alrm) | |||
208 | struct rtc_time *tm = &alrm->time; | 208 | struct rtc_time *tm = &alrm->time; |
209 | 209 | ||
210 | at91_rtc_decodetime(AT91_RTC_TIMALR, AT91_RTC_CALALR, tm); | 210 | at91_rtc_decodetime(AT91_RTC_TIMALR, AT91_RTC_CALALR, tm); |
211 | tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year); | ||
212 | tm->tm_year = at91_alarm_year - 1900; | 211 | tm->tm_year = at91_alarm_year - 1900; |
213 | 212 | ||
214 | alrm->enabled = (at91_rtc_read_imr() & AT91_RTC_ALARM) | 213 | alrm->enabled = (at91_rtc_read_imr() & AT91_RTC_ALARM) |