patch-2.4.19 linux-2.4.19/arch/m68k/apollo/config.c
Next file: linux-2.4.19/arch/m68k/atari/ataints.c
Previous file: linux-2.4.19/arch/m68k/amiga/config.c
Back to the patch index
Back to the overall index
- Lines: 60
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/m68k/apollo/config.c
- Orig date:
Mon Jun 11 19:15:27 2001
diff -urN linux-2.4.18/arch/m68k/apollo/config.c linux-2.4.19/arch/m68k/apollo/config.c
@@ -4,6 +4,7 @@
#include <linux/mm.h>
#include <linux/tty.h>
#include <linux/console.h>
+#include <linux/rtc.h>
#include <asm/setup.h>
#include <asm/bootinfo.h>
@@ -34,7 +35,7 @@
extern int dn_get_irq_list(char *);
extern unsigned long dn_gettimeoffset(void);
extern void dn_gettod(int *, int *, int *, int *, int *, int *);
-extern int dn_dummy_hwclk(int, struct hwclk_time *);
+extern int dn_dummy_hwclk(int, struct rtc_time *);
extern int dn_dummy_set_clock_mmss(unsigned long);
extern void dn_mksound(unsigned int count, unsigned int ticks);
extern void dn_dummy_reset(void);
@@ -254,26 +255,26 @@
}
-int dn_dummy_hwclk(int op, struct hwclk_time *t) {
+int dn_dummy_hwclk(int op, struct rtc_time *t) {
if(!op) { /* read */
- t->sec=rtc->second;
- t->min=rtc->minute;
- t->hour=rtc->hours;
- t->day=rtc->day_of_month;
- t->wday=rtc->day_of_week;
- t->mon=rtc->month;
- t->year=rtc->year;
+ t->tm_sec=rtc->second;
+ t->tm_min=rtc->minute;
+ t->tm_hour=rtc->hours;
+ t->tm_mday=rtc->day_of_month;
+ t->tm_wday=rtc->day_of_week;
+ t->tm_mon=rtc->month;
+ t->tm_year=rtc->year;
} else {
- rtc->second=t->sec;
- rtc->minute=t->min;
- rtc->hours=t->hour;
- rtc->day_of_month=t->day;
- if(t->wday!=-1)
- rtc->day_of_week=t->wday;
- rtc->month=t->mon;
- rtc->year=t->year;
+ rtc->second=t->tm_sec;
+ rtc->minute=t->tm_min;
+ rtc->hours=t->tm_hour;
+ rtc->day_of_month=t->tm_mday;
+ if(t->tm_wday!=-1)
+ rtc->day_of_week=t->tm_wday;
+ rtc->month=t->tm_mon;
+ rtc->year=t->tm_year;
}
return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)