]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: davinci: remove useless 24h alarm handling
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 5 Mar 2020 21:50:20 +0000 (22:50 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:09 +0000 (11:12 +0100)
commit067b17159f8d216d33d3e3d405f70308244b5fee
tree52aa4ba09f18c2215d26b56c42ca1974f47dab53
parentf87b7826201bca4ca98a068f289b79cf3fd969cf
rtc: davinci: remove useless 24h alarm handling

The code handling invalid alarms meaning the alarm is in the next 24 hours
is not necessary since commit 62664de0cf33 ("rtc: remove "RTC_ALM_SET mode"
bugs") which actually predates this driver. Since then, .set_alarm is never
called with an invalid alarm and this handling is not necessary in the
driver.

Link: https://lore.kernel.org/r/20200305215022.32533-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-davinci.c