diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-04-15 22:02:26 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-04-18 22:42:06 +0200 |
commit | 9f210ec65acc525db49de3223b935f9dd4c2f5b5 (patch) | |
tree | 5a35708bf8b22a8ea8eeebaf9beac21fbe749755 /drivers/rtc | |
parent | 06030d5001494f67fe2dee65c49c2f0e54e34eba (diff) | |
download | linux-9f210ec65acc525db49de3223b935f9dd4c2f5b5.tar.bz2 |
rtc: 88pm860x: remove useless range check
Because the core is now checking the RTC range, it is unnecessary to check
it again in .set_time/
Link: https://lore.kernel.org/r/20200415200226.157361-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-88pm860x.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c index cc9b14ef90f1..c90457d001e9 100644 --- a/drivers/rtc/rtc-88pm860x.c +++ b/drivers/rtc/rtc-88pm860x.c @@ -106,12 +106,6 @@ static int pm860x_rtc_set_time(struct device *dev, struct rtc_time *tm) unsigned char buf[4]; unsigned long ticks, base, data; - if (tm->tm_year > 206) { - dev_dbg(info->dev, "Set time %d out of range. " - "Please set time between 1970 to 2106.\n", - 1900 + tm->tm_year); - return -EINVAL; - } ticks = rtc_tm_to_time64(tm); /* load 32-bit read-only counter */ |