aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 89b0f58194d1..f77fa22754bc 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -669,7 +669,7 @@ int update_persistent_clock(struct timespec now)
669 struct rtc_time tm; 669 struct rtc_time tm;
670 670
671 if (!ppc_md.set_rtc_time) 671 if (!ppc_md.set_rtc_time)
672 return 0; 672 return -ENODEV;
673 673
674 to_tm(now.tv_sec + 1 + timezone_offset, &tm); 674 to_tm(now.tv_sec + 1 + timezone_offset, &tm);
675 tm.tm_year -= 1900; 675 tm.tm_year -= 1900;