From: Maciej W. Rozycki Date: Thu, 7 Feb 2008 08:15:10 +0000 (-0800) Subject: dz: rename the serial console structure X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6d83c067ebd11d375b34c53192c10826947e8568;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) } 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 */