patch-2.4.22 linux-2.4.22/arch/mips/arc/arc_con.c
Next file: linux-2.4.22/arch/mips/arc/cmdline.c
Previous file: linux-2.4.22/arch/mips/arc/Makefile
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
2003-08-25 04:44:39.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/arc/arc_con.c
- Orig date:
2002-11-28 15:53:09.000000000 -0800
diff -urN linux-2.4.21/arch/mips/arc/arc_con.c linux-2.4.22/arch/mips/arc/arc_con.c
@@ -32,19 +32,16 @@
static int __init prom_console_setup(struct console *co, char *options)
{
- if (prom_flags & PROM_FLAG_USE_AS_CONSOLE)
- return 0;
- else
- return 1;
+ return !(prom_flags & PROM_FLAG_USE_AS_CONSOLE);
}
static struct console arc_cons = {
- name: "ttyS",
- write: prom_console_write,
- device: prom_console_device,
- setup: prom_console_setup,
- flags: CON_PRINTBUFFER,
- index: -1,
+ .name = "arc",
+ .write = prom_console_write,
+ .device = prom_console_device,
+ .setup = prom_console_setup,
+ .flags = CON_PRINTBUFFER,
+ .index = -1,
};
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)