mrst_read_time should return 0 instead of RTC_24H, like the common rtc-cmos driver. The rtc interface (rtc/interface.c) treats all other return values as errors. This fixes reading RTC time and date on Moorestown based platforms.
Signed-off-by: Mathias Nyman <[email protected]> --- drivers/rtc/rtc-mrst.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c index 8fea10b..d890da1 100644 --- a/drivers/rtc/rtc-mrst.c +++ b/drivers/rtc/rtc-mrst.c @@ -91,7 +91,7 @@ static int mrst_read_time(struct device *dev, struct rtc_time *time) /* Adjust for the 1960/1900 */ time->tm_year += 60; time->tm_mon--; - return RTC_24H; + return 0; } static int mrst_set_time(struct device *dev, struct rtc_time *time) -- 1.7.4.1 --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. _______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
