]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-powerpc/rtc.h
[PATCH] autofs4: add a show mount options for proc filesystem
[linux-2.6-omap-h63xx.git] / include / asm-powerpc / rtc.h
index d38f2a077db2d39ae5d347c37f288a148b84ef3b..f5802926b6c0589af109b9308ab92c992364d5c6 100644 (file)
@@ -52,10 +52,8 @@ static inline unsigned int get_rtc_time(struct rtc_time *time)
 /* Set the current date and time in the real time clock. */
 static inline int set_rtc_time(struct rtc_time *time)
 {
-       if (ppc_md.get_rtc_time) {
-               ppc_md.set_rtc_time(time);
-               return 0;
-       }
+       if (ppc_md.set_rtc_time)
+               return ppc_md.set_rtc_time(time);
        return -EINVAL;
 }