Commit 488c6dfe authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: s35390a: 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: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 201fac95
...@@ -450,7 +450,6 @@ static int s35390a_probe(struct i2c_client *client, ...@@ -450,7 +450,6 @@ static int s35390a_probe(struct i2c_client *client,
int err, err_read; int err, err_read;
unsigned int i; unsigned int i;
struct s35390a *s35390a; struct s35390a *s35390a;
struct rtc_time tm;
char buf, status1; char buf, status1;
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
...@@ -508,9 +507,6 @@ static int s35390a_probe(struct i2c_client *client, ...@@ -508,9 +507,6 @@ static int s35390a_probe(struct i2c_client *client,
} }
} }
if (err_read > 0 || s35390a_get_datetime(client, &tm) < 0)
dev_warn(&client->dev, "clock needs to be set\n");
device_set_wakeup_capable(&client->dev, 1); device_set_wakeup_capable(&client->dev, 1);
s35390a->rtc = devm_rtc_device_register(&client->dev, s35390a->rtc = devm_rtc_device_register(&client->dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment