rtc: mt2712: remove unnecessary error string
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 15 Apr 2020 20:00:20 +0000 (22:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 18 Apr 2020 20:42:03 +0000 (22:42 +0200)
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>
drivers/rtc/rtc-mt2712.c

index f6bdbabd72023940cc65def22f81251f611a079e..9868d98f397c1e4d63ea9ebc0b1818a8b7632947 100644 (file)
@@ -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