diff options
author | Chris Packham <judge.packham@gmail.com> | 2018-03-21 15:40:35 +1300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-06 20:45:44 -0400 |
commit | fbd8179cbadd44a9a45ef3eff7c2b5b5aa56938a (patch) | |
tree | e55e0bebd2937e12c712902db97d0f59fc6ad507 /drivers | |
parent | a6bf689a70432ef035033aa81370ee953ecdf25d (diff) | |
download | u-boot-fbd8179cbadd44a9a45ef3eff7c2b5b5aa56938a.tar.gz u-boot-fbd8179cbadd44a9a45ef3eff7c2b5b5aa56938a.tar.xz u-boot-fbd8179cbadd44a9a45ef3eff7c2b5b5aa56938a.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/mx27rtc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/rtc/mx27rtc.c b/drivers/rtc/mx27rtc.c index 29ccdf1730..b42770e05b 100644 --- a/drivers/rtc/mx27rtc.c +++ b/drivers/rtc/mx27rtc.c @@ -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 */ } |