patch-2.4.24 linux-2.4.24/arch/m68k/mvme16x/rtc.c
Next file: linux-2.4.24/arch/ppc64/kernel/rtc.c
Previous file: linux-2.4.24/arch/m68k/bvme6000/rtc.c
Back to the patch index
Back to the overall index
- Lines: 8
- Date:
2004-01-05 05:53:56.000000000 -0800
- Orig file:
linux-2.4.23/arch/m68k/mvme16x/rtc.c
- Orig date:
2003-06-13 07:51:31.000000000 -0700
diff -urN linux-2.4.23/arch/m68k/mvme16x/rtc.c linux-2.4.24/arch/m68k/mvme16x/rtc.c
@@ -52,6 +52,7 @@
cli();
/* Ensure clock and real-time-mode-register are accessible */
rtc->ctrl = RTC_READ;
+ memset(&wtime, 0, sizeof(struct rtc_time));
wtime.tm_sec = BCD2BIN(rtc->bcd_sec);
wtime.tm_min = BCD2BIN(rtc->bcd_min);
wtime.tm_hour = BCD2BIN(rtc->bcd_hr);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)