commit | 275ebe2b8fcab4ba4a774e6ee1e3e28d495cff3e | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Fri Nov 10 09:59:30 2017 +0100 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Fri Nov 10 16:24:27 2017 +0100 |
tree | b5dc25bd43390fd1319e166d063cedca12f39b9d | |
parent | 9a06da2ecc92a81e969bd8c3768f63b63cb02e80 [diff] |
rtc: at91rm9200: stop calculating yday in at91_rtc_readalarm Calculating yday in the read_alarm callback is useless as this value is never used later. Also, it was buggy anyway because at the time this is done, tm_year is always 0 as the alarm register doesn't hold the year. Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>