X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-powerpc%2Frtc.h;h=f5802926b6c0589af109b9308ab92c992364d5c6;hb=6e29ebad0f252b085a3bb0188637f315efda0a48;hp=d38f2a077db2d39ae5d347c37f288a148b84ef3b;hpb=f2783c15007468c14972e2617db51e9affc7fad9;p=powerpc.git diff --git a/include/asm-powerpc/rtc.h b/include/asm-powerpc/rtc.h index d38f2a077d..f5802926b6 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) /* 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; }