From 517749f7668becad06eb9e86ea284d9c02b0c4a3 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Fri, 18 Dec 2020 16:47:04 +0800 Subject: [PATCH] drivers: rtc: revert debug log from rtc module According to debug, denver's unexpected RTC reset was caused by PMIC issue. So I rever the monitor change. This reverts commit 2a62d1dc1ccb40b698b33d4cff83f8cdf3d4c95c. Change-Id: I6ef1049ccdfd32b1f12df3aef748c5755a469a64 Reviewed-on: https://gerrit.mot.com/1831952 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/rtc/rtc-pm8xxx.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index 567981e5ab1f..2904b2ad5851 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++ b/drivers/rtc/rtc-pm8xxx.c @@ -63,13 +63,6 @@ struct pm8xxx_rtc { spinlock_t ctrl_reg_lock; }; -/* MMI_STOPSHIP BSP: Debug unexpected RTC reset */ - -#ifdef dev_dbg -#undef dev_dbg -#define dev_dbg dev_err -#endif - /* * Steps to write the RTC registers. * 1. Disable alarm if enabled. @@ -365,9 +358,6 @@ static irqreturn_t pm8xxx_alarm_trigger(int irq, void *dev_id) rtc_update_irq(rtc_dd->rtc, 1, RTC_IRQF | RTC_AF); - dev_dbg(rtc_dd->rtc_dev, - "motorola debug rtc : enter %s\n", __func__); - spin_lock_irqsave(&rtc_dd->ctrl_reg_lock, irq_flags); /* Clear the alarm enable bit */