aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2008-02-07 03:15:10 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 11:42:24 -0500
commit6d83c067ebd11d375b34c53192c10826947e8568 (patch)
treef4923f30b187e9d0d21c3711fded6f507e4f0310 /drivers/serial
parent7287d765d5f2e946fdffbcba36088c44ebb35912 (diff)
dz: rename the serial console structure
Rename the serial console structure so that `modpost' does not complain about a reference to an "init" section -- "_console" is magic. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/dz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/dz.c b/drivers/serial/dz.c
index 83dc75be5bbc..c2f867777145 100644
--- a/drivers/serial/dz.c
+++ b/drivers/serial/dz.c
@@ -744,7 +744,7 @@ static int __init dz_console_setup(struct console *co, char *options)
744} 744}
745 745
746static struct uart_driver dz_reg; 746static struct uart_driver dz_reg;
747static struct console dz_sercons = { 747static struct console dz_console = {
748 .name = "ttyS", 748 .name = "ttyS",
749 .write = dz_console_print, 749 .write = dz_console_print,
750 .device = uart_console_device, 750 .device = uart_console_device,
@@ -758,7 +758,7 @@ static int __init dz_serial_console_init(void)
758{ 758{
759 if (!IOASIC) { 759 if (!IOASIC) {
760 dz_init_ports(); 760 dz_init_ports();
761 register_console(&dz_sercons); 761 register_console(&dz_console);
762 return 0; 762 return 0;
763 } else 763 } else
764 return -ENXIO; 764 return -ENXIO;
@@ -766,7 +766,7 @@ static int __init dz_serial_console_init(void)
766 766
767console_initcall(dz_serial_console_init); 767console_initcall(dz_serial_console_init);
768 768
769#define SERIAL_DZ_CONSOLE &dz_sercons 769#define SERIAL_DZ_CONSOLE &dz_console
770#else 770#else
771#define SERIAL_DZ_CONSOLE NULL 771#define SERIAL_DZ_CONSOLE NULL
772#endif /* CONFIG_SERIAL_DZ_CONSOLE */ 772#endif /* CONFIG_SERIAL_DZ_CONSOLE */