1
0
Fork 0

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
Anson Huang 2018-03-08 11:23:17 +08:00 committed by Jason Liu
parent 8aa3671614
commit 265c975b3f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}