]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rx8025: don't reset the time
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sun, 26 Jul 2015 08:13:31 +0000 (10:13 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:11 +0000 (13:19 +0200)
commitdb9fbe25d3ca902a3176fa8b12343ae1f4ce0e4c
treee79796b8ed107ffde4647337e51ec4dcf3c33ebb
parentecac4c2ebf4d3948796ddf48a084e1cf1c0b3c50
rtc: rx8025: don't reset the time

Stop setting the time to epoch when it is invalid. The proper way to handle
that is to return an error when it is invalid instead of returning an
incorrect value.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-rx8025.c