diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-04-15 22:00:20 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-04-18 22:42:03 +0200 |
commit | 3642b17e9a8d32ddf8d74cd033de7efcd0a15aec (patch) | |
tree | cee9d24fbddf58f2df83db5c1fe8cb006f51e5c1 | |
parent | 11ddbdfb68e4f9791e4bd4f8d7c87d3f19670967 (diff) | |
download | linux-3642b17e9a8d32ddf8d74cd033de7efcd0a15aec.tar.gz |
rtc: mt2712: remove unnecessary error string
Remove the unnecessary error string as the core will already display error
messages when registration fails (i.e. never).
Link: https://lore.kernel.org/r/20200415200021.157118-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-mt2712.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/rtc/rtc-mt2712.c b/drivers/rtc/rtc-mt2712.c index f6bdbabd7202..9868d98f397c 100644 --- a/drivers/rtc/rtc-mt2712.c +++ b/drivers/rtc/rtc-mt2712.c @@ -354,13 +354,7 @@ static int mt2712_rtc_probe(struct platform_device *pdev) mt2712_rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; mt2712_rtc->rtc->range_max = MT2712_RTC_TIMESTAMP_END_2127; - ret = rtc_register_device(mt2712_rtc->rtc); - if (ret) { - dev_err(&pdev->dev, "register rtc device failed\n"); - return ret; - } - - return 0; + return rtc_register_device(mt2712_rtc->rtc); } #ifdef CONFIG_PM_SLEEP |