Skip to content

Commit 8805bac

Browse files
rtc: twl: remove unnecessary messages
The RTC core already prints a message when the RTC is registered and when registering fails, it is not necessary to have more in the driver. Link: https://lore.kernel.org/r/20230827221643.544259-2-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 94ec1f0 commit 8805bac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/rtc/rtc-twl.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ static int twl_rtc_probe(struct platform_device *pdev)
555555
REG_INT_MSK_STS_A);
556556
}
557557

558-
dev_info(&pdev->dev, "Enabling TWL-RTC\n");
559558
ret = twl_rtc_write_u8(twl_rtc, BIT_RTC_CTRL_REG_STOP_RTC_M,
560559
REG_RTC_CTRL_REG);
561560
if (ret < 0)
@@ -577,11 +576,8 @@ static int twl_rtc_probe(struct platform_device *pdev)
577576

578577
twl_rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
579578
&twl_rtc_ops, THIS_MODULE);
580-
if (IS_ERR(twl_rtc->rtc)) {
581-
dev_err(&pdev->dev, "can't register RTC device, err %ld\n",
582-
PTR_ERR(twl_rtc->rtc));
579+
if (IS_ERR(twl_rtc->rtc))
583580
return PTR_ERR(twl_rtc->rtc);
584-
}
585581

586582
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
587583
twl_rtc_interrupt,

0 commit comments

Comments
 (0)