]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: diasemi: stop validating rtc_time in .read_time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 2 Mar 2018 09:08:47 +0000 (10:08 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 2 Mar 2018 09:11:02 +0000 (10:11 +0100)
commit5c9ae7daebc1de1fae2033e80c990c8ef386a252
tree3534d8c89da4652b34e6c735ad95d1cb6d16b10b
parentb7e22e707f42a1f5e9d743461a88b0fb55eda83d
rtc: diasemi: stop validating rtc_time in .read_time

The RTC core is always calling rtc_valid_tm after the read_time callback.
It is not necessary to call it before returning from the callback.

Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-da9052.c
drivers/rtc/rtc-da9055.c
drivers/rtc/rtc-da9063.c