[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1584233264-26025-1-git-send-email-Anson.Huang@nxp.com>
Date: Sun, 15 Mar 2020 08:47:44 +0800
From: Anson Huang <Anson.Huang@....com>
To: a.zummo@...ertech.it, alexandre.belloni@...tlin.com,
linux-rtc@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Linux-imx@....com
Subject: [PATCH] rtc: snvs: remove redundant error message
The RTC core already has error message for registration failure,
no need to have error message in the driver again.
Signed-off-by: Anson Huang <Anson.Huang@....com>
---
drivers/rtc/rtc-snvs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c
index 319ed1d..36f4961 100644
--- a/drivers/rtc/rtc-snvs.c
+++ b/drivers/rtc/rtc-snvs.c
@@ -354,8 +354,6 @@ static int snvs_rtc_probe(struct platform_device *pdev)
data->rtc->ops = &snvs_rtc_ops;
data->rtc->range_max = U32_MAX;
ret = rtc_register_device(data->rtc);
- if (ret)
- dev_err(&pdev->dev, "failed to register rtc: %d\n", ret);
return ret;
}
--
2.7.4
Powered by blists - more mailing lists