]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rtc: mx27rtc: remove redundant code in rtc_reset
authorChris Packham <judge.packham@gmail.com>
Wed, 21 Mar 2018 02:40:35 +0000 (15:40 +1300)
committerTom Rini <trini@konsulko.com>
Sat, 7 Apr 2018 00:45:44 +0000 (20:45 -0400)
As of commit 1a1fa2406689 ("rtc: Set valid date after reset") the
command "date reset" will set the date/time to 2000-01-01 0:00:00 after
calling rtc_reset(). This means that the mx27rtc implementation of
rtc_reset() can be an empty stub function.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
drivers/rtc/mx27rtc.c

index 29ccdf17301b174241feffadd7fb4e92084a4b18..b42770e05bd92dd8795bf0dc0a895c7be0bb55a5 100644 (file)
@@ -61,9 +61,5 @@ int rtc_set(struct rtc_time *time)
 
 void rtc_reset(void)
 {
-       struct rtc_regs *rtc_regs = (struct rtc_regs *)IMX_RTC_BASE;
-
-       writel(0, &rtc_regs->dayr);
-       writel(0, &rtc_regs->hourmin);
-       writel(0, &rtc_regs->seconds);
+       /* nothing to do */
 }