OSDN Git Service

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)
commit6f0a8cfebb898b88fb0d934d7a44a6d4c98d5285
treee79796b8ed107ffde4647337e51ec4dcf3c33ebb
parent2e10e74df72ff0f8ea65eb1ee6e39ed8278a91bf
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