patch-2.4.25 linux-2.4.25/arch/mips/jmr3927/rbhma3100/rtc.c

Next file: linux-2.4.25/arch/mips/kernel/Makefile
Previous file: linux-2.4.25/arch/mips/jmr3927/common/rtc_ds1742.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/mips/jmr3927/rbhma3100/rtc.c linux-2.4.25/arch/mips/jmr3927/rbhma3100/rtc.c
@@ -31,17 +31,16 @@
  *  with this program; if not, write  to the Free Software Foundation, Inc.,
  *  675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include <asm/mc146818rtc.h>	/* bad name... */
-#include <asm/jmr3927/jmr3927.h>
+#include <asm/mc146818rtc.h>
 
 static unsigned char jmr3927_rtc_read_data(unsigned long addr)
 {
-	return jmr3927_nvram_in(addr);
+	return readb(addr);
 }
 
 static void jmr3927_rtc_write_data(unsigned char data, unsigned long addr)
 {
-	jmr3927_nvram_out(data, addr);
+	writeb(data, addr);
 }
 
 static int jmr3927_rtc_bcd_mode(void)

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