diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-21 05:48:46 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 09:20:42 -0400 |
commit | 4cda172bc338abf770dcdbcf61049ef0d76b17fc (patch) | |
tree | 4072833c502cd788fca2d012d96c2e1f3b33392f /drivers/rtc/rtc-rk808.c | |
parent | 24f421b73918741666b57933316c711b0063ca84 (diff) |
rtc: rk808: remove useless debug message
At probe time, printing a message when the time is invalid doesn't have
much value. Also, as the comment suggest, this is a leftover from
development wherhe this was used to set the RTc to a default time.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-rk808.c')
-rw-r--r-- | drivers/rtc/rtc-rk808.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-rk808.c b/drivers/rtc/rtc-rk808.c index 35c9aada07c8..e40f35d1ced3 100644 --- a/drivers/rtc/rtc-rk808.c +++ b/drivers/rtc/rtc-rk808.c | |||
@@ -375,7 +375,6 @@ static int rk808_rtc_probe(struct platform_device *pdev) | |||
375 | { | 375 | { |
376 | struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); | 376 | struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); |
377 | struct rk808_rtc *rk808_rtc; | 377 | struct rk808_rtc *rk808_rtc; |
378 | struct rtc_time tm; | ||
379 | int ret; | 378 | int ret; |
380 | 379 | ||
381 | rk808_rtc = devm_kzalloc(&pdev->dev, sizeof(*rk808_rtc), GFP_KERNEL); | 380 | rk808_rtc = devm_kzalloc(&pdev->dev, sizeof(*rk808_rtc), GFP_KERNEL); |
@@ -404,16 +403,6 @@ static int rk808_rtc_probe(struct platform_device *pdev) | |||
404 | return ret; | 403 | return ret; |
405 | } | 404 | } |
406 | 405 | ||
407 | /* set init time */ | ||
408 | ret = rk808_rtc_readtime(&pdev->dev, &tm); | ||
409 | if (ret) { | ||
410 | dev_err(&pdev->dev, "Failed to read RTC time\n"); | ||
411 | return ret; | ||
412 | } | ||
413 | ret = rtc_valid_tm(&tm); | ||
414 | if (ret) | ||
415 | dev_warn(&pdev->dev, "invalid date/time\n"); | ||
416 | |||
417 | device_init_wakeup(&pdev->dev, 1); | 406 | device_init_wakeup(&pdev->dev, 1); |
418 | 407 | ||
419 | rk808_rtc->rtc = devm_rtc_device_register(&pdev->dev, "rk808-rtc", | 408 | rk808_rtc->rtc = devm_rtc_device_register(&pdev->dev, "rk808-rtc", |