[MIPS] Fix genrtc compilation.
Signed-off-by: Ralf Roesch <ralf.roesch@rw-gmbh.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
193dd2ce2a
commit
a682a24170
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ static inline unsigned int get_rtc_time(struct rtc_time *time)
|
||||||
{
|
{
|
||||||
unsigned long nowtime;
|
unsigned long nowtime;
|
||||||
|
|
||||||
nowtime = rtc_get_time();
|
nowtime = rtc_mips_get_time();
|
||||||
to_tm(nowtime, time);
|
to_tm(nowtime, time);
|
||||||
time->tm_year -= 1900;
|
time->tm_year -= 1900;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ static inline int set_rtc_time(struct rtc_time *time)
|
||||||
nowtime = mktime(time->tm_year+1900, time->tm_mon+1,
|
nowtime = mktime(time->tm_year+1900, time->tm_mon+1,
|
||||||
time->tm_mday, time->tm_hour, time->tm_min,
|
time->tm_mday, time->tm_hour, time->tm_min,
|
||||||
time->tm_sec);
|
time->tm_sec);
|
||||||
ret = rtc_set_time(nowtime);
|
ret = rtc_mips_set_time(nowtime);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue