mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-06 23:01:36 +00:00
rtc: mx27rtc: remove redundant code in rtc_reset
As of commit 1a1fa24066
("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>
This commit is contained in:
parent
a6bf689a70
commit
fbd8179cba
1 changed files with 1 additions and 5 deletions
|
@ -61,9 +61,5 @@ int rtc_set(struct rtc_time *time)
|
||||||
|
|
||||||
void rtc_reset(void)
|
void rtc_reset(void)
|
||||||
{
|
{
|
||||||
struct rtc_regs *rtc_regs = (struct rtc_regs *)IMX_RTC_BASE;
|
/* nothing to do */
|
||||||
|
|
||||||
writel(0, &rtc_regs->dayr);
|
|
||||||
writel(0, &rtc_regs->hourmin);
|
|
||||||
writel(0, &rtc_regs->seconds);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue