]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/mn10300/kernel/rtc.c
MN10300: Fix RTC routines
[mv-sheeva.git] / arch / mn10300 / kernel / rtc.c
index 815a933aafa8c4a7ec400d8de316cdf367ad5edf..4eef0e7224f63728feb8f99216cbad2b5be9999f 100644 (file)
@@ -20,9 +20,6 @@
 DEFINE_SPINLOCK(rtc_lock);
 EXPORT_SYMBOL(rtc_lock);
 
-/* last time the RTC got updated */
-static long last_rtc_update;
-
 /* time for RTC to update itself in ioclks */
 static unsigned long mn10300_rtc_update_period;
 
@@ -110,7 +107,7 @@ static int set_rtc_mmss(unsigned long nowtime)
 
 int update_persistent_clock(struct timespec now)
 {
-       return set_rtc_mms(now.tv_sec);
+       return set_rtc_mmss(now.tv_sec);
 }
 
 /*