patch-2.4.19 linux-2.4.19/arch/mips/mips-boards/generic/printf.c

Next file: linux-2.4.19/arch/mips/mips-boards/generic/time.c
Previous file: linux-2.4.19/arch/mips/mips-boards/generic/pci.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/mips/mips-boards/generic/printf.c linux-2.4.19/arch/mips/mips-boards/generic/printf.c
@@ -40,12 +40,12 @@
  */
 unsigned int atlas_serial_in(struct async_struct *info, int offset)
 {
-	return (*(volatile unsigned int *)(info->port + mips_io_port_base + offset*8) & 0xff);
+	return inl(info->port + offset*8) & 0xff;
 }
 
 void atlas_serial_out(struct async_struct *info, int offset, int value)
 {
-	*(volatile unsigned int *)(info->port + mips_io_port_base + offset*8) = value;
+	outl(value, info->port + offset*8);
 }
 
 #define serial_in  atlas_serial_in

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