Skip to contentSkip to conversation

asm-generic: make get_rtc_time overridable

PATCH New Arnd Bergmann 1 participant 1 message May 17, 2009 Generic include/asm header files

lore
Share & tools
lore

Arnd Bergmann

author maintainer
#0 lore raw

PATCH 1/1 asm-generic: make get_rtc_time overridable

Evidently, set_rtc_time is supposed to be overridable by architectures that define their own version, but unfortunately, get_rtc_ss would in that case still use the generic version.

This makes get_rtc_ss call the real set_rtc_time to let architectures define their own version. The change should fix the "Extended RTC operation" on Alpha, which uses the incorrect get_rtc_ss call. It also allows PowerPC to use the asm-generic/rtc.h file in the future.

Cc Richard Henderson <[email protected]>
Cc Tom Rini <[email protected]>
Cc Alessandro Zummo <[email protected]>
Cc Paul Gortmaker <[email protected]>
---
 include/asm-generic/rtc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-generic/rtc.h +1 -1
index 763e3b0..fa86f24 100644
@@ -202,7 +202,7 @@ static inline unsigned int get_rtc_ss(void)
 {
 	struct rtc_time h;
 
-	__get_rtc_time(&h);
+	get_rtc_time(&h);
 	return h.tm_sec;
 }
 
Signature · 1 line
1.6.0.4