MLK-17730 rtc: rtc-imx-sc: only print once for read time error
As RTC read time will be called periodically, to avoid too many error messages when RTC is NOT ready in SCFW, change the error print to only print once. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>pull/10/head
parent
8aa3671614
commit
265c975b3f
|
@ -61,7 +61,7 @@ static int imx_sc_rtc_read_time(struct device *dev, struct rtc_time *tm)
|
|||
|
||||
sciErr = sc_timer_get_rtc_sec1970(timer_ipcHandle, &time);
|
||||
if (sciErr) {
|
||||
dev_err(dev, "failed to read time: %d\n", sciErr);
|
||||
dev_err_once(dev, "failed to read time: %d\n", sciErr);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue