Skip to content

Commit 3557957

Browse files
dhowellstorvalds
authored andcommitted
MN10300: Fix RTC routines
A change to the RTC routines in the MN10300 arch used set_rtc_mms() when it meant set_rtc_mmss(). This results in an error due to a reference of an undefined symbol. Signed-off-by: David Howells <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d4a47ac commit 3557957

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

arch/mn10300/kernel/rtc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
DEFINE_SPINLOCK(rtc_lock);
2121
EXPORT_SYMBOL(rtc_lock);
2222

23-
/* last time the RTC got updated */
24-
static long last_rtc_update;
25-
2623
/* time for RTC to update itself in ioclks */
2724
static unsigned long mn10300_rtc_update_period;
2825

@@ -110,7 +107,7 @@ static int set_rtc_mmss(unsigned long nowtime)
110107

111108
int update_persistent_clock(struct timespec now)
112109
{
113-
return set_rtc_mms(now.tv_sec);
110+
return set_rtc_mmss(now.tv_sec);
114111
}
115112

116113
/*

0 commit comments

Comments
 (0)