aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/rtc.h')
-rw-r--r--include/asm-powerpc/rtc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/asm-powerpc/rtc.h b/include/asm-powerpc/rtc.h
index d38f2a077db2..f5802926b6c0 100644
--- a/include/asm-powerpc/rtc.h
+++ b/include/asm-powerpc/rtc.h
@@ -52,10 +52,8 @@ static inline unsigned int get_rtc_time(struct rtc_time *time)
52/* Set the current date and time in the real time clock. */ 52/* Set the current date and time in the real time clock. */
53static inline int set_rtc_time(struct rtc_time *time) 53static inline int set_rtc_time(struct rtc_time *time)
54{ 54{
55 if (ppc_md.get_rtc_time) { 55 if (ppc_md.set_rtc_time)
56 ppc_md.set_rtc_time(time); 56 return ppc_md.set_rtc_time(time);
57 return 0;
58 }
59 return -EINVAL; 57 return -EINVAL;
60} 58}
61 59