projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rtc: pcf85063: remove useless indirection
[linux-block.git]
/
drivers
/
rtc
/
rtc-m41t80.c
diff --git
a/drivers/rtc/rtc-m41t80.c
b/drivers/rtc/rtc-m41t80.c
index c90fba3ed861881c0c813361dfaece9efac60938..1103cdc33bfad2d721f815f5b6b8aa996d33f786 100644
(file)
--- a/
drivers/rtc/rtc-m41t80.c
+++ b/
drivers/rtc/rtc-m41t80.c
@@
-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;
/* 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. */
}
/* Sets the given date and time to the real time clock. */