mfd: menelaus: Remove superfluous error message
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 21 May 2019 20:43:04 +0000 (22:43 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
The RTC core already has error messages in case of failure, there is no
need to have another message in the driver.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/menelaus.c

index d28ebe7ecd211d87c209f6891468cfc55236d046..91c568ef5857be3bc5d21dfb33f5150db9c6e775 100644 (file)
@@ -1138,8 +1138,6 @@ static inline void menelaus_rtc_init(struct menelaus_chip *m)
                        menelaus_remove_irq_work(MENELAUS_RTCALM_IRQ);
                        device_init_wakeup(&m->client->dev, 0);
                }
-               dev_err(&m->client->dev, "can't register RTC: %d\n",
-                               (int) PTR_ERR(m->rtc));
                the_menelaus->rtc = NULL;
        }
 }