“fced80c735941fa518ac67c0b61bbe153fb8c050”上不存在“arch/arm/mach-lpc32xx/include/mach/system.h”
提交 24f421b7 编写于 作者: A Alexandre Belloni

rtc: rx8581: remove useless message

It is not necessary to print a message when the time is invalid as
userspace will already get an error (and an optional dev_dbg message).
Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
上级 02d28997
......@@ -164,11 +164,7 @@ static int rx8581_get_datetime(struct i2c_client *client, struct rtc_time *tm)
tm->tm_sec, tm->tm_min, tm->tm_hour,
tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday);
err = rtc_valid_tm(tm);
if (err < 0)
dev_err(&client->dev, "retrieved date/time is not valid.\n");
return err;
return 0;
}
static int rx8581_set_datetime(struct i2c_client *client, struct rtc_time *tm)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册