Skip to contentSkip to conversation

rtc.h fix

PATCH In review Ralf Rösch 2 participants 2 messages Apr 4, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc.h fix

patch below makes genrtc.c compilable again

include/asm-mips/rtc.h +2 -2
diff -Nur -X diff-exclude-files-2.6 linux-2.6/include/asm-mips/rtc.h work-2.6/include/asm-mips/rtc.h
@@ -32,7 +32,7 @@
 {
 	unsigned long nowtime;
 
-	nowtime = rtc_get_time();
+	nowtime = rtc_mips_get_time();
 	to_tm(nowtime, time);
 	time->tm_year -= 1900;
 
@@ -47,7 +47,7 @@
 	nowtime = mktime(time->tm_year+1900, time->tm_mon+1,
 			time->tm_mday, time->tm_hour, time->tm_min,
 			time->tm_sec);
-	ret = rtc_set_time(nowtime);
+	ret = rtc_mips_set_time(nowtime);
 
 	return ret;
 }