--- zzzz-none-000/linux-2.4.17/arch/mips/ddb5xxx/common/rtc_ds1386.c 2001-09-09 17:43:01.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/arch/mips/ddb5xxx/common/rtc_ds1386.c 2004-11-24 13:22:39.000000000 +0000 @@ -24,7 +24,7 @@ #include #include -#include +#include #define EPOCH 2000 @@ -101,7 +101,7 @@ } temp = READ_RTC(0x9); - month = BIN_TO_BCD(tm.tm_mon); + month = BIN_TO_BCD(tm.tm_mon+1); /* tm_mon starts from 0 to 11 */ if (month != (temp & 0x1f)) { WRITE_RTC( 0x9, (month & 0x1f) | (temp & ~0x1f) ); @@ -147,7 +147,7 @@ /* remember the base */ rtc_base = base; - MIPS_ASSERT((rtc_base & 0xe0000000) == KSEG1); + db_assert((rtc_base & 0xe0000000) == KSEG1); /* turn on RTC if it is not on */ byte = READ_RTC(0x9);