X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=drivers%2Frtc%2Frtc-m48t86.c;h=f981287d582b76a4a68a11246451e37b9a60c352;hb=04ab9ef97771ba88789672a1f0d0ddcf8dbc0924;hp=7c045cffa9ff64ae9e2e1e2a7c9f0ce75b7b9c18;hpb=45e4a24f7b6b23810142112b5850fe75696a1155;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git diff --git a/drivers/rtc/rtc-m48t86.c b/drivers/rtc/rtc-m48t86.c index 7c045cffa9ff..f981287d582b 100644 --- a/drivers/rtc/rtc-m48t86.c +++ b/drivers/rtc/rtc-m48t86.c @@ -77,7 +77,7 @@ static int m48t86_rtc_read_time(struct device *dev, struct rtc_time *tm) if (ops->readbyte(M48T86_REG_HOUR) & 0x80) tm->tm_hour += 12; - return 0; + return rtc_valid_tm(tm); } static int m48t86_rtc_set_time(struct device *dev, struct rtc_time *tm)