diff options
| author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-21 09:42:32 -0500 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 09:20:44 -0400 |
| commit | ce5abb1939d3de92e971a0a3a59c473b34ca7383 (patch) | |
| tree | 412f54fd652e9038a7d481f8a52684e57868d150 /drivers/rtc | |
| parent | 779e1aabb49e4f3749be659eb4edfe23db09a800 (diff) | |
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>
Diffstat (limited to 'drivers/rtc')
| -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, | |||
| 581 | int err = 0; | 581 | int err = 0; |
| 582 | int smbus_mode = 0; | 582 | int smbus_mode = 0; |
| 583 | struct rs5c372 *rs5c372; | 583 | struct rs5c372 *rs5c372; |
| 584 | struct rtc_time tm; | ||
| 585 | 584 | ||
| 586 | dev_dbg(&client->dev, "%s\n", __func__); | 585 | dev_dbg(&client->dev, "%s\n", __func__); |
| 587 | 586 | ||
| @@ -662,9 +661,6 @@ static int rs5c372_probe(struct i2c_client *client, | |||
| 662 | goto exit; | 661 | goto exit; |
| 663 | } | 662 | } |
| 664 | 663 | ||
| 665 | if (rs5c372_get_datetime(client, &tm) < 0) | ||
| 666 | dev_warn(&client->dev, "clock needs to be set\n"); | ||
| 667 | |||
| 668 | dev_info(&client->dev, "%s found, %s\n", | 664 | dev_info(&client->dev, "%s found, %s\n", |
| 669 | ({ char *s; switch (rs5c372->type) { | 665 | ({ char *s; switch (rs5c372->type) { |
| 670 | case rtc_r2025sd: s = "r2025sd"; break; | 666 | case rtc_r2025sd: s = "r2025sd"; break; |
