rtc: cmos: let the core handle invalid time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 21 Feb 2018 10:44:26 +0000 (11:44 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:39 +0000 (10:49 +0100)
commit812318a094d0715194d9f686b22ee67e7dc59d93
treef28012e390919dc1b118606a722ad06a1f3d341d
parent7d1bd37ff06b9e7c49dc033fce4069f69ad6e564
rtc: cmos: let the core handle invalid time

Setting the rtc to a valid time when the time is invalid is a bad practice,
because then userspace doesn't know it shouldn't trust the RTC.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-cmos.c