patch-2.3.18 linux/drivers/sbus/char/rtc.c

Next file: linux/drivers/sbus/char/sab82532.c
Previous file: linux/drivers/sbus/char/pcikbd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.17/linux/drivers/sbus/char/rtc.c linux/drivers/sbus/char/rtc.c
@@ -1,4 +1,4 @@
-/* $Id: rtc.c,v 1.17 1999/08/31 13:32:01 anton Exp $
+/* $Id: rtc.c,v 1.18 1999/08/31 18:51:36 davem Exp $
  *
  * Linux/SPARC Real Time Clock Driver
  * Copyright (C) 1996 Thomas K. Dyas (tdyas@eden.rutgers.edu)
@@ -29,7 +29,7 @@
 /* Retrieve the current date and time from the real time clock. */
 void get_rtc_time(struct rtc_time *t)
 {
-	struct mostek48t02 *regs = (struct mostek48t02 *)mstk48t02_regs;
+	unsigned long regs = mstk48t02_regs;
 	unsigned long flags;
 	u8 tmp;
 
@@ -57,7 +57,7 @@
 /* Set the current date and time inthe real time clock. */
 void set_rtc_time(struct rtc_time *t)
 {
-	struct mostek48t02 *regs = (struct mostek48t02 *)mstk48t02_regs;
+	unsigned long regs = mstk48t02_regs;
 	unsigned long flags;
 	u8 tmp;
 

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