Commit 40dffe2c authored by Art Haas's avatar Art Haas Committed by David S. Miller

[PATCH] C99 initializers for drivers/serial

parent a3b016ca
...@@ -1682,12 +1682,12 @@ void m68328_console_write (struct console *co, const char *str, ...@@ -1682,12 +1682,12 @@ void m68328_console_write (struct console *co, const char *str,
static struct console m68328_driver = { static struct console m68328_driver = {
name: "ttyS", .name = "ttyS",
write: m68328_console_write, .write = m68328_console_write,
device: m68328_console_device, .device = m68328_console_device,
setup: m68328_console_setup, .setup = m68328_console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: -1, .index = -1,
}; };
......
...@@ -2566,13 +2566,13 @@ static kdev_t serial_console_device(struct console *c) ...@@ -2566,13 +2566,13 @@ static kdev_t serial_console_device(struct console *c)
struct console sercons = { struct console sercons = {
name: "ttyS", .name = "ttyS",
write: serial_console_write, .write = serial_console_write,
device: serial_console_device, .device = serial_console_device,
wait_key: serial_console_wait_key, .wait_key = serial_console_wait_key,
setup: serial_console_setup, .setup = serial_console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: CONFIG_SERIAL_CONSOLE_PORT, .index = CONFIG_SERIAL_CONSOLE_PORT,
}; };
......
...@@ -112,15 +112,15 @@ static struct parisc_device_id serial1_tbl[] = { ...@@ -112,15 +112,15 @@ static struct parisc_device_id serial1_tbl[] = {
MODULE_DEVICE_TABLE(parisc, serial_tbl); MODULE_DEVICE_TABLE(parisc, serial_tbl);
static struct parisc_driver serial1_driver = { static struct parisc_driver serial1_driver = {
name: "Serial RS232", .name = "Serial RS232",
id_table: serial1_tbl, .id_table = serial1_tbl,
probe: serial_init_chip, .probe = serial_init_chip,
}; };
static struct parisc_driver serial_driver = { static struct parisc_driver serial_driver = {
name: "Serial RS232", .name = "Serial RS232",
id_table: serial_tbl, .id_table = serial_tbl,
probe: serial_init_chip, .probe = serial_init_chip,
}; };
int __init probe_serial_gsc(void) int __init probe_serial_gsc(void)
......
...@@ -1853,12 +1853,12 @@ void mcfrs_console_write(struct console *cp, const char *p, unsigned len) ...@@ -1853,12 +1853,12 @@ void mcfrs_console_write(struct console *cp, const char *p, unsigned len)
*/ */
struct console mcfrs_console = { struct console mcfrs_console = {
name: "ttyS", .name = "ttyS",
write: mcfrs_console_write, .write = mcfrs_console_write,
device: mcfrs_console_device, .device = mcfrs_console_device,
setup: mcfrs_console_setup, .setup = mcfrs_console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: -1, .index = -1,
}; };
void __init mcfrs_console_init(void) void __init mcfrs_console_init(void)
......
...@@ -255,12 +255,12 @@ static kdev_t nb85e_uart_cons_device (struct console *c) ...@@ -255,12 +255,12 @@ static kdev_t nb85e_uart_cons_device (struct console *c)
static struct console nb85e_uart_cons = static struct console nb85e_uart_cons =
{ {
name: "ttyS", .name = "ttyS",
write: nb85e_uart_cons_write, .write = nb85e_uart_cons_write,
device: nb85e_uart_cons_device, .device = nb85e_uart_cons_device,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
cflag: NB85E_UART_INIT_CFLAGS, .cflag = NB85E_UART_INIT_CFLAGS,
index: -1, .index = -1,
}; };
void nb85e_uart_cons_init (unsigned chan) void nb85e_uart_cons_init (unsigned chan)
......
...@@ -731,9 +731,9 @@ int uart00_remove_devices(void) ...@@ -731,9 +731,9 @@ int uart00_remove_devices(void)
} }
struct pld_hotswap_ops uart00_pldhs_ops={ struct pld_hotswap_ops uart00_pldhs_ops={
name: "uart00", .name = "uart00",
add_device: uart00_add_device, .add_device = uart00_add_device,
remove_devices:uart00_remove_devices, .remove_devices = uart00_remove_devices,
}; };
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment