]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rtc: stop validating rtc_time in .read_time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 19 Feb 2018 15:23:56 +0000 (16:23 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 2 Mar 2018 09:09:58 +0000 (10:09 +0100)
The RTC core is always calling rtc_valid_tm after the read_time callback.
It is not necessary to call it just before returning from the callback.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
48 files changed:
drivers/rtc/rtc-ac100.c
drivers/rtc/rtc-au1xxx.c
drivers/rtc/rtc-bq32k.c
drivers/rtc/rtc-ds1216.c
drivers/rtc/rtc-ds1286.c
drivers/rtc/rtc-ds1302.c
drivers/rtc/rtc-ds1305.c
drivers/rtc/rtc-ds1307.c
drivers/rtc/rtc-ds1343.c
drivers/rtc/rtc-ds1347.c
drivers/rtc/rtc-ds1390.c
drivers/rtc/rtc-ds1685.c
drivers/rtc/rtc-ds1742.c
drivers/rtc/rtc-ds2404.c
drivers/rtc/rtc-ds3232.c
drivers/rtc/rtc-efi.c
drivers/rtc/rtc-fm3130.c
drivers/rtc/rtc-isl12022.c
drivers/rtc/rtc-lpc24xx.c
drivers/rtc/rtc-m41t80.c
drivers/rtc/rtc-m41t94.c
drivers/rtc/rtc-m48t35.c
drivers/rtc/rtc-m48t59.c
drivers/rtc/rtc-m48t86.c
drivers/rtc/rtc-max6902.c
drivers/rtc/rtc-max6916.c
drivers/rtc/rtc-max8997.c
drivers/rtc/rtc-max8998.c
drivers/rtc/rtc-mcp795.c
drivers/rtc/rtc-mrst.c
drivers/rtc/rtc-msm6242.c
drivers/rtc/rtc-mt7622.c
drivers/rtc/rtc-mv.c
drivers/rtc/rtc-pcf2123.c
drivers/rtc/rtc-pcf2127.c
drivers/rtc/rtc-pcf50633.c
drivers/rtc/rtc-pcf8523.c
drivers/rtc/rtc-pic32.c
drivers/rtc/rtc-r9701.c
drivers/rtc/rtc-rp5c01.c
drivers/rtc/rtc-rx6110.c
drivers/rtc/rtc-rx8010.c
drivers/rtc/rtc-rx8025.c
drivers/rtc/rtc-s3c.c
drivers/rtc/rtc-s5m.c
drivers/rtc/rtc-sh.c
drivers/rtc/rtc-sun6i.c
drivers/rtc/rtc-sunxi.c

index 8ff9dc3fe5bf06ea15a2321df4a4383d32414527..080e3c04be43bd98bc02af33716a77cfaa676c63 100644 (file)
@@ -387,7 +387,7 @@ static int ac100_rtc_get_time(struct device *dev, struct rtc_time *rtc_tm)
        rtc_tm->tm_year = bcd2bin(reg[6] & AC100_RTC_YEA_MASK) +
                          AC100_YEAR_OFF;
 
-       return rtc_valid_tm(rtc_tm);
+       return 0;
 }
 
 static int ac100_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm)
index 2ba44ccb9c3a3fe00e3e9bf2c740845001011b79..7c5530c71285bd05e429ca51c820bd21a54053c4 100644 (file)
@@ -36,7 +36,7 @@ static int au1xtoy_rtc_read_time(struct device *dev, struct rtc_time *tm)
 
        rtc_time_to_tm(t, tm);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int au1xtoy_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 98ac8d5c7901a59f438cb2ec83670caa54ce80fe..e8698e9870fe1e2c8dc879ad2282c6c67f8cd2a9 100644 (file)
@@ -110,7 +110,7 @@ static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm)
        tm->tm_year = bcd2bin(regs.years) +
                                ((regs.cent_hours & BQ32K_CENT) ? 100 : 0);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int bq32k_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 9c82b1da2d4593a592f2ddff286556bd6da15ef5..5f158715fb4c96e16d62d7f8eee4e200fdb267f7 100644 (file)
@@ -99,7 +99,7 @@ static int ds1216_rtc_read_time(struct device *dev, struct rtc_time *tm)
        if (tm->tm_year < 70)
                tm->tm_year += 100;
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int ds1216_rtc_set_time(struct device *dev, struct rtc_time *tm)
index ef75c349dff9cf3da5a5c2c692dc4e61b3fe79bf..0744916b79c505836abac02ad556bf5a5a39cf05 100644 (file)
@@ -211,7 +211,7 @@ static int ds1286_read_time(struct device *dev, struct rtc_time *tm)
 
        tm->tm_mon--;
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int ds1286_set_time(struct device *dev, struct rtc_time *tm)
index 43bcb17c922efaf37dd0339c6574f8fe01025740..2a881150d51c282802fc168b992448f37b0af66e 100644 (file)
@@ -98,8 +98,7 @@ static int ds1302_rtc_get_time(struct device *dev, struct rtc_time *time)
        time->tm_mon = bcd2bin(buf[RTC_ADDR_MON]) - 1;
        time->tm_year = bcd2bin(buf[RTC_ADDR_YEAR]) + 100;
 
-       /* Time may not be set */
-       return rtc_valid_tm(time);
+       return 0;
 }
 
 static const struct rtc_class_ops ds1302_rtc_ops = {
index 3d2400a39da997f36aae5f8c525be5a51e7cb350..2d502fc85698e6203db082327b0cfac806d208be 100644 (file)
@@ -203,8 +203,7 @@ static int ds1305_get_time(struct device *dev, struct rtc_time *time)
                time->tm_hour, time->tm_mday,
                time->tm_mon, time->tm_year, time->tm_wday);
 
-       /* Time may not be set */
-       return rtc_valid_tm(time);
+       return 0;
 }
 
 static int ds1305_set_time(struct device *dev, struct rtc_time *time)
index 4021d478b9f362c023c82288f98d451a3525fb3c..a13e59edff530d147a44574f06b351e72d3621f5 100644 (file)
@@ -437,8 +437,7 @@ static int ds1307_get_time(struct device *dev, struct rtc_time *t)
                t->tm_hour, t->tm_mday,
                t->tm_mon, t->tm_year, t->tm_wday);
 
-       /* initial clock setting can be undefined */
-       return rtc_valid_tm(t);
+       return 0;
 }
 
 static int ds1307_set_time(struct device *dev, struct rtc_time *t)
index 59d27db2fd3719698af7c983d4c5a1d790248dd2..5208da4cf94ab2b0e69d374836acb63e83916ca6 100644 (file)
@@ -254,7 +254,7 @@ static int ds1343_read_time(struct device *dev, struct rtc_time *dt)
        dt->tm_mon      = bcd2bin(buf[5] & 0x1F) - 1;
        dt->tm_year     = bcd2bin(buf[6]) + 100; /* year offset from 1900 */
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int ds1343_set_time(struct device *dev, struct rtc_time *dt)
index ccfc9d43eb1e680956d32892e9bacfaddefafd1a..938512c676eed4247bc0e1e15f67f6d36ad54937 100644 (file)
@@ -66,7 +66,7 @@ static int ds1347_read_time(struct device *dev, struct rtc_time *dt)
        dt->tm_wday = bcd2bin(buf[5]) - 1;
        dt->tm_year = bcd2bin(buf[6]) + 100;
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int ds1347_set_time(struct device *dev, struct rtc_time *dt)
index 4d5b007d7fc68cfbe71cc6f4c577b5bc4cc357e3..3b095401f848906184ecfd6ef75644ca73eaead2 100644 (file)
@@ -153,7 +153,7 @@ static int ds1390_read_time(struct device *dev, struct rtc_time *dt)
        /* adjust for century bit */
        dt->tm_year = bcd2bin(chip->txrx_buf[6]) + ((chip->txrx_buf[5] & 0x80) ? 100 : 0);
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int ds1390_set_time(struct device *dev, struct rtc_time *dt)
index ed43b431166064770c7486498f75a55a10fe5689..1a39829d2b40358b9313b5e79d1da10f2da5a105 100644 (file)
@@ -306,7 +306,7 @@ ds1685_rtc_read_time(struct device *dev, struct rtc_time *tm)
        tm->tm_yday  = rtc_year_days(tm->tm_mday, tm->tm_mon, tm->tm_year);
        tm->tm_isdst = 0; /* RTC has hardcoded timezone, so don't use. */
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 /**
index 52baf925a6909f9c384a9dd45f40ae527d92c607..2d781180e968a12950a2c5fcf9f2f7fa123aa13d 100644 (file)
@@ -112,7 +112,7 @@ static int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm)
        /* year is 1900 + tm->tm_year */
        tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900;
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static const struct rtc_class_ops ds1742_rtc_ops = {
index 9a1582ed7070a0ffc9d75d86f353d8383b7594ab..b886b6a5c1785835f3d934500e31e0e2d61a15fc 100644 (file)
@@ -207,7 +207,7 @@ static int ds2404_read_time(struct device *dev, struct rtc_time *dt)
        time = le32_to_cpu(time);
 
        rtc_time_to_tm(time, dt);
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int ds2404_set_mmss(struct device *dev, unsigned long secs)
index 0550f7ba464f414d068985d1c58b2d0029754d26..7184e5145f12da07e01a837cef7bf1376cff75fa 100644 (file)
@@ -145,7 +145,7 @@ static int ds3232_read_time(struct device *dev, struct rtc_time *time)
 
        time->tm_year = bcd2bin(year) + add_century;
 
-       return rtc_valid_tm(time);
+       return 0;
 }
 
 static int ds3232_set_time(struct device *dev, struct rtc_time *time)
index 0130afd7fe889e5767660292c2d2f87d58ad2725..3454e7814524a3defaa3ef1c25da4132fa825bb7 100644 (file)
@@ -176,7 +176,7 @@ static int efi_read_time(struct device *dev, struct rtc_time *tm)
        if (!convert_from_efi_time(&eft, tm))
                return -EIO;
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int efi_set_time(struct device *dev, struct rtc_time *tm)
index 576eadbba296799eca4bc2ad45d13769799a7cf1..e1137670d4d27e846e4ecaecb020275205977230 100644 (file)
@@ -136,8 +136,7 @@ static int fm3130_get_time(struct device *dev, struct rtc_time *t)
                t->tm_hour, t->tm_mday,
                t->tm_mon, t->tm_year, t->tm_wday);
 
-       /* initial clock setting can be undefined */
-       return rtc_valid_tm(t);
+       return 0;
 }
 
 
index 38586a024ee86f0e3854d534d875d071388a71a6..46093cd13d5e7158d92c5d26b5031f6a2a1819b5 100644 (file)
@@ -149,7 +149,7 @@ static int isl12022_get_datetime(struct i2c_client *client, struct rtc_time *tm)
                tm->tm_sec, tm->tm_min, tm->tm_hour,
                tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int isl12022_set_datetime(struct i2c_client *client, struct rtc_time *tm)
index 59d99596fdebc83981cb23cbad13a9881ab5cb3e..14dc7b04fae04cd5d38933675493529b36b1ef25 100644 (file)
@@ -110,7 +110,7 @@ static int lpc24xx_rtc_read_time(struct device *dev, struct rtc_time *tm)
        tm->tm_year = CT1_YEAR(ct1);
        tm->tm_yday = CT2_DOY(ct2);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int lpc24xx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *wkalrm)
index c90fba3ed861881c0c813361dfaece9efac60938..1103cdc33bfad2d721f815f5b6b8aa996d33f786 100644 (file)
@@ -230,7 +230,7 @@ static int m41t80_get_datetime(struct i2c_client *client,
 
        /* assume 20YY not 19YY, and ignore the Century Bit */
        tm->tm_year = bcd2bin(buf[M41T80_REG_YEAR]) + 100;
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 /* Sets the given date and time to the real time clock. */
index 1f0eb79e69f90e279c33be8efc771a357c7ede91..bab82b4be35681ba23463e8112cccd5230428dd2 100644 (file)
@@ -99,8 +99,7 @@ static int m41t94_read_time(struct device *dev, struct rtc_time *tm)
                tm->tm_hour, tm->tm_mday,
                tm->tm_mon, tm->tm_year, tm->tm_wday);
 
-       /* initial clock setting can be undefined */
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static const struct rtc_class_ops m41t94_rtc_ops = {
index 810f4ea481e4dc4c8f0be4123656f1c5700a13fe..0cf6507de3c728868329d89d52c523b30ae8d36b 100644 (file)
@@ -84,7 +84,7 @@ static int m48t35_read_time(struct device *dev, struct rtc_time *tm)
                tm->tm_year += 100;
 
        tm->tm_mon--;
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int m48t35_set_time(struct device *dev, struct rtc_time *tm)
index d2ba7d76dbb975487cb382118ab2b429b0ce6957..216fac62c888e94da57c1b5aa9e97e30237a350f 100644 (file)
@@ -105,7 +105,7 @@ static int m48t59_rtc_read_time(struct device *dev, struct rtc_time *tm)
        dev_dbg(dev, "RTC read time %04d-%02d-%02d %02d/%02d/%02d\n",
                tm->tm_year + 1900, tm->tm_mon, tm->tm_mday,
                tm->tm_hour, tm->tm_min, tm->tm_sec);
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int m48t59_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 8d17be1e6650b9e086d7acd3a6fee5d79869877f..a9533535c3b7d0d97140f30863147e97bb55cde0 100644 (file)
@@ -100,7 +100,7 @@ static int m48t86_rtc_read_time(struct device *dev, struct rtc_time *tm)
                if (m48t86_readb(dev, M48T86_HOUR) & 0x80)
                        tm->tm_hour += 12;
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int m48t86_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 315d09e0f2c1b930bfcf7c1ecc5c5f0181be322c..745827463367a7d845500cd61d7fae09b7502890 100644 (file)
@@ -85,7 +85,7 @@ static int max6902_read_time(struct device *dev, struct rtc_time *dt)
        dt->tm_year += century;
        dt->tm_year -= 1900;
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int max6902_set_time(struct device *dev, struct rtc_time *dt)
index 623ab27b2757cda88eb75486a88e87369f0034bc..7e908a490cf691e5deb6b8ac6182eb65d39661f5 100644 (file)
@@ -75,7 +75,7 @@ static int max6916_read_time(struct device *dev, struct rtc_time *dt)
        dt->tm_wday = bcd2bin(buf[5]) - 1;
        dt->tm_year = bcd2bin(buf[6]) + 100;
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int max6916_set_time(struct device *dev, struct rtc_time *dt)
index db984d4bf9526bbc78e501ff8da6a7036801872b..e8cee123e8aae3b1c08774d6d01796dd34ef71be 100644 (file)
@@ -153,7 +153,7 @@ static int max8997_rtc_read_time(struct device *dev, struct rtc_time *tm)
 
        max8997_rtc_data_to_tm(data, tm, info->rtc_24hr_mode);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int max8997_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 30804b00985e5f84770189a68eacad9854bea335..d8c0f9b3f87d5e330c943a575eaca6b16b7345f7 100644 (file)
@@ -120,7 +120,7 @@ static int max8998_rtc_read_time(struct device *dev, struct rtc_time *tm)
 
        max8998_data_to_tm(data, tm);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int max8998_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 77f21331ae21c5f098cb7d3f307c294f1a62e889..79e24eadbe99905ae8efe2ac7b71daecce93f8ab 100644 (file)
@@ -262,7 +262,7 @@ static int mcp795_read_time(struct device *dev, struct rtc_time *tim)
                        tim->tm_year + 1900, tim->tm_mon, tim->tm_mday,
                        tim->tm_wday, tim->tm_hour, tim->tm_min, tim->tm_sec);
 
-       return rtc_valid_tm(tim);
+       return 0;
 }
 
 static int mcp795_set_alarm(struct device *dev, struct rtc_wkalrm *alm)
index 7334c44fa7c3553d61db84570e2a78733d2e24e6..901a8d170f689c5a76673635e5a69d6bd1167fee 100644 (file)
@@ -105,7 +105,7 @@ static int mrst_read_time(struct device *dev, struct rtc_time *time)
        /* Adjust for the 1972/1900 */
        time->tm_year += 72;
        time->tm_mon--;
-       return rtc_valid_tm(time);
+       return 0;
 }
 
 static int mrst_set_time(struct device *dev, struct rtc_time *time)
index c1c5c4e3b3b4715ea250a5b16bfaa49e2ebd688b..0c72a2e8ec67d27f5bfd296a7772210371c3d88f 100644 (file)
@@ -155,7 +155,7 @@ static int msm6242_read_time(struct device *dev, struct rtc_time *tm)
 
        msm6242_unlock(priv);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int msm6242_set_time(struct device *dev, struct rtc_time *tm)
index d79b9ae4d237fb4167c9f2e7c1b8b1c395d31202..da213278f343d4c9f2d71b60ebefbd065a3523d1 100644 (file)
@@ -232,7 +232,7 @@ static int mtk_rtc_gettime(struct device *dev, struct rtc_time *tm)
 
        mtk_rtc_get_alarm_or_time(hw, tm, MTK_TC);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int mtk_rtc_settime(struct device *dev, struct rtc_time *tm)
index 79bb28617d458ec99f77518472f2f1505960d2b0..944c5c0fadd0e91a1259ea2a202bd2778e579ee5 100644 (file)
@@ -94,7 +94,7 @@ static int mv_rtc_read_time(struct device *dev, struct rtc_time *tm)
        /* hw counts from year 2000, but tm_year is relative to 1900 */
        tm->tm_year = bcd2bin(year) + 100;
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int mv_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm)
index 8895f77726e8da5444afcd602dceff8f25a9b3fd..e5222c5d822389b25d746607a45ccfbcfe3493ce 100644 (file)
@@ -289,7 +289,7 @@ static int pcf2123_rtc_read_time(struct device *dev, struct rtc_time *tm)
                        tm->tm_sec, tm->tm_min, tm->tm_hour,
                        tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int pcf2123_rtc_set_time(struct device *dev, struct rtc_time *tm)
index f33447c5db85e395ac540f43c1bf7ec69f48efcf..e83be1852c2fb276b25f1ff112e2be240e5aae0c 100644 (file)
@@ -111,7 +111,7 @@ static int pcf2127_rtc_read_time(struct device *dev, struct rtc_time *tm)
                tm->tm_sec, tm->tm_min, tm->tm_hour,
                tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int pcf2127_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 00c31c91b245fb080b5312cc2d7499268d3b1a4b..ef72b0c389d79ed01566550f2d67094e2c89a448 100644 (file)
@@ -135,7 +135,7 @@ static int pcf50633_rtc_read_time(struct device *dev, struct rtc_time *tm)
                tm->tm_mday, tm->tm_mon, tm->tm_year,
                tm->tm_hour, tm->tm_min, tm->tm_sec);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int pcf50633_rtc_set_time(struct device *dev, struct rtc_time *tm)
index c312af0db72957af5ed4980663fce838ab7cec1c..453615f8ac9a012ea0022227f947f5778c477fdf 100644 (file)
@@ -192,7 +192,7 @@ static int pcf8523_rtc_read_time(struct device *dev, struct rtc_time *tm)
        tm->tm_mon = bcd2bin(regs[5] & 0x1f) - 1;
        tm->tm_year = bcd2bin(regs[6]) + 100;
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int pcf8523_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 5cfb6df5c43032e294ccc5a610637ba6e049b27f..3c08eab4f1a81838f49e83df13eddd1a0bafff7b 100644 (file)
@@ -175,7 +175,7 @@ static int pic32_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm)
                rtc_tm->tm_hour, rtc_tm->tm_min, rtc_tm->tm_sec);
 
        clk_disable(pdata->clk);
-       return rtc_valid_tm(rtc_tm);
+       return 0;
 }
 
 static int pic32_rtc_settime(struct device *dev, struct rtc_time *tm)
index b6c5eb97051c4443913a3fde38380441a7f6e18f..a39ccd1cf6e8f5f50d2a73bf9028c390f5c21d26 100644 (file)
@@ -92,7 +92,7 @@ static int r9701_get_datetime(struct device *dev, struct rtc_time *dt)
         * according to the data sheet. make sure they are valid.
         */
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int r9701_set_datetime(struct device *dev, struct rtc_time *dt)
index 043b1667b41a1217c2b64119651804e1a74cade3..f1c160fe7d37e55a566a782498928a90431baed6 100644 (file)
@@ -115,7 +115,7 @@ static int rp5c01_read_time(struct device *dev, struct rtc_time *tm)
        rp5c01_unlock(priv);
        spin_unlock_irq(&priv->lock);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int rp5c01_set_time(struct device *dev, struct rtc_time *tm)
index 7c9c08eab5e5b6baf52d0bafcf86d3d92698c693..8e322d884cc27fe6c711305ef6b6bc6571a7d820 100644 (file)
@@ -252,7 +252,7 @@ static int rx6110_get_time(struct device *dev, struct rtc_time *tm)
                tm->tm_sec, tm->tm_min, tm->tm_hour,
                tm->tm_mday, tm->tm_mon, tm->tm_year);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static const struct reg_sequence rx6110_default_regs[] = {
index 5c5938ab3d86bcb0bef62e9425553cce800b9d2b..7ddc22eb5b0fad3216dff4981541e1c4c419b24b 100644 (file)
@@ -138,7 +138,7 @@ static int rx8010_get_time(struct device *dev, struct rtc_time *dt)
        dt->tm_year = bcd2bin(date[RX8010_YEAR - RX8010_SEC]) + 100;
        dt->tm_wday = ffs(date[RX8010_WDAY - RX8010_SEC] & 0x7f);
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int rx8010_set_time(struct device *dev, struct rtc_time *dt)
index 91857d8d2df8707a75a0f931d5ba6afb6ed45afe..41127adf57655083f3e85eb773517725dab00bf0 100644 (file)
@@ -214,7 +214,7 @@ static int rx8025_get_time(struct device *dev, struct rtc_time *dt)
                dt->tm_sec, dt->tm_min, dt->tm_hour,
                dt->tm_mday, dt->tm_mon, dt->tm_year);
 
-       return rtc_valid_tm(dt);
+       return 0;
 }
 
 static int rx8025_set_time(struct device *dev, struct rtc_time *dt)
index a8992c227f611807c998bbe81c434d9388cfd33f..75c8c5033e0877bc313527491df9a2e9edf21d3c 100644 (file)
@@ -232,7 +232,7 @@ retry_get_time:
 
        rtc_tm->tm_mon -= 1;
 
-       return rtc_valid_tm(rtc_tm);
+       return 0;
 }
 
 static int s3c_rtc_settime(struct device *dev, struct rtc_time *tm)
index 0477678d968fd1ccdec8e36784e57e05910364dc..6deae10c14ace84c52f16d076c0067c0dbef0e6b 100644 (file)
@@ -407,7 +407,7 @@ static int s5m_rtc_read_time(struct device *dev, struct rtc_time *tm)
                1900 + tm->tm_year, 1 + tm->tm_mon, tm->tm_mday,
                tm->tm_hour, tm->tm_min, tm->tm_sec, tm->tm_wday);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int s5m_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 6c2d3989f967baff96625ab39d0d19336b002def..4e8ab370ce63bb4ca097e35c21f7f99513073770 100644 (file)
@@ -414,7 +414,7 @@ static int sh_rtc_read_time(struct device *dev, struct rtc_time *tm)
                tm->tm_sec, tm->tm_min, tm->tm_hour,
                tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday);
 
-       return rtc_valid_tm(tm);
+       return 0;
 }
 
 static int sh_rtc_set_time(struct device *dev, struct rtc_time *tm)
index 5bc28eed1adf591a5c32f35e23968bf7b31f2ed5..2e6fb275acc82733de30da185cba99f83368acbb 100644 (file)
@@ -349,7 +349,7 @@ static int sun6i_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm)
         */
        rtc_tm->tm_year += SUN6I_YEAR_OFF;
 
-       return rtc_valid_tm(rtc_tm);
+       return 0;
 }
 
 static int sun6i_rtc_getalarm(struct device *dev, struct rtc_wkalrm *wkalrm)
index abada609ddc736c8fdb7af2b1009e44aafa544b4..dadbf8b324ad24366c1f38db5195de03ab344e42 100644 (file)
@@ -261,7 +261,7 @@ static int sunxi_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm)
         */
        rtc_tm->tm_year += SUNXI_YEAR_OFF(chip->data_year);
 
-       return rtc_valid_tm(rtc_tm);
+       return 0;
 }
 
 static int sunxi_rtc_setalarm(struct device *dev, struct rtc_wkalrm *wkalrm)