Commit fbd8179cbadd44a9a45ef3eff7c2b5b5aa56938a

Authored by Chris Packham
Committed by Tom Rini
1 parent a6bf689a70

rtc: mx27rtc: remove redundant code in rtc_reset

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>

Showing 1 changed file with 1 additions and 5 deletions Side-by-side Diff

drivers/rtc/mx27rtc.c
... ... @@ -61,10 +61,6 @@
61 61  
62 62 void rtc_reset(void)
63 63 {
64   - struct rtc_regs *rtc_regs = (struct rtc_regs *)IMX_RTC_BASE;
65   -
66   - writel(0, &rtc_regs->dayr);
67   - writel(0, &rtc_regs->hourmin);
68   - writel(0, &rtc_regs->seconds);
  64 + /* nothing to do */
69 65 }