Skip to content

Commit

Permalink
dz: rename the serial console structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maciej W. Rozycki authored and Linus Torvalds committed Feb 7, 2008
1 parent 7287d76 commit 6d83c06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/serial/dz.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -758,15 +758,15 @@ 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;
}

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 */
Expand Down

0 comments on commit 6d83c06

Please sign in to comment.