diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-21 15:42:32 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 14:20:44 +0100 |
commit | ce5abb1939d3de92e971a0a3a59c473b34ca7383 (patch) | |
tree | 412f54fd652e9038a7d481f8a52684e57868d150 | |
parent | 779e1aabb49e4f3749be659eb4edfe23db09a800 (diff) | |
download | linux-ce5abb1939d3de92e971a0a3a59c473b34ca7383.tar.gz linux-ce5abb1939d3de92e971a0a3a59c473b34ca7383.tar.bz2 linux-ce5abb1939d3de92e971a0a3a59c473b34ca7383.zip |
rtc: rs5c372: 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: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-rs5c372.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-rs5c372.c b/drivers/rtc/rtc-rs5c372.c index d4eff8d7131f..37aa78fd2c4d 100644 --- a/drivers/rtc/rtc-rs5c372.c +++ b/drivers/rtc/rtc-rs5c372.c @@ -581,7 +581,6 @@ static int rs5c372_probe(struct i2c_client *client, int err = 0; int smbus_mode = 0; struct rs5c372 *rs5c372; - struct rtc_time tm; dev_dbg(&client->dev, "%s\n", __func__); @@ -662,9 +661,6 @@ static int rs5c372_probe(struct i2c_client *client, goto exit; } - if (rs5c372_get_datetime(client, &tm) < 0) - dev_warn(&client->dev, "clock needs to be set\n"); - dev_info(&client->dev, "%s found, %s\n", ({ char *s; switch (rs5c372->type) { case rtc_r2025sd: s = "r2025sd"; break; |