diff options
Diffstat (limited to 'arch/powerpc/kernel/time.c')
-rw-r--r-- | arch/powerpc/kernel/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c index 127361e093f4..aaba2e05a417 100644 --- a/arch/powerpc/kernel/time.c +++ b/arch/powerpc/kernel/time.c | |||
@@ -668,7 +668,7 @@ int update_persistent_clock(struct timespec now) | |||
668 | struct rtc_time tm; | 668 | struct rtc_time tm; |
669 | 669 | ||
670 | if (!ppc_md.set_rtc_time) | 670 | if (!ppc_md.set_rtc_time) |
671 | return 0; | 671 | return -ENODEV; |
672 | 672 | ||
673 | to_tm(now.tv_sec + 1 + timezone_offset, &tm); | 673 | to_tm(now.tv_sec + 1 + timezone_offset, &tm); |
674 | tm.tm_year -= 1900; | 674 | tm.tm_year -= 1900; |