提交 6d83c067 编写于 作者: M Maciej W. Rozycki 提交者: Linus Torvalds

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: NMaciej W. Rozycki <macro@linux-mips.org>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 7287d765
......@@ -744,7 +744,7 @@ static int __init dz_console_setup(struct console *co, char *options)
}
static struct uart_driver dz_reg;
static struct console dz_sercons = {
static struct console dz_console = {
.name = "ttyS",
.write = dz_console_print,
.device = uart_console_device,
......@@ -758,7 +758,7 @@ static int __init dz_serial_console_init(void)
{
if (!IOASIC) {
dz_init_ports();
register_console(&dz_sercons);
register_console(&dz_console);
return 0;
} else
return -ENXIO;
......@@ -766,7 +766,7 @@ static int __init dz_serial_console_init(void)
console_initcall(dz_serial_console_init);
#define SERIAL_DZ_CONSOLE &dz_sercons
#define SERIAL_DZ_CONSOLE &dz_console
#else
#define SERIAL_DZ_CONSOLE NULL
#endif /* CONFIG_SERIAL_DZ_CONSOLE */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册