patch-2.4.25 linux-2.4.25/drivers/char/ds1286.c

Next file: linux-2.4.25/drivers/char/ds1742.c
Previous file: linux-2.4.25/drivers/char/drm-4.0/tdfx_drv.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/drivers/char/ds1286.c linux-2.4.25/drivers/char/ds1286.c
@@ -422,7 +422,7 @@
 
 	rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS);
 	rtc_tm->tm_min = CMOS_READ(RTC_MINUTES);
-	rtc_tm->tm_hour = CMOS_READ(RTC_HOURS) & 0x1f;
+	rtc_tm->tm_hour = CMOS_READ(RTC_HOURS) & 0x3f;
 	rtc_tm->tm_mday = CMOS_READ(RTC_DATE);
 	rtc_tm->tm_mon = CMOS_READ(RTC_MONTH) & 0x1f;
 	rtc_tm->tm_year = CMOS_READ(RTC_YEAR);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)