[PATCH] rtc: snvs: remove redundant error message
From: Anson Huang
Date: Sat Mar 14 2020 - 21:32:35 EST
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@xxxxxxx>
---
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