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,
static struct console m68328_driver = {
name: "ttyS",
write: m68328_console_write,
device: m68328_console_device,
setup: m68328_console_setup,
flags: CON_PRINTBUFFER,
index: -1,
.name = "ttyS",
.write = m68328_console_write,
.device = m68328_console_device,
.setup = m68328_console_setup,
.flags = CON_PRINTBUFFER,
.index = -1,
};
......
......@@ -2566,13 +2566,13 @@ static kdev_t serial_console_device(struct console *c)
struct console sercons = {
name: "ttyS",
write: serial_console_write,
device: serial_console_device,
wait_key: serial_console_wait_key,
setup: serial_console_setup,
flags: CON_PRINTBUFFER,
index: CONFIG_SERIAL_CONSOLE_PORT,
.name = "ttyS",
.write = serial_console_write,
.device = serial_console_device,
.wait_key = serial_console_wait_key,
.setup = serial_console_setup,
.flags = CON_PRINTBUFFER,
.index = CONFIG_SERIAL_CONSOLE_PORT,
};
......
......@@ -112,15 +112,15 @@ static struct parisc_device_id serial1_tbl[] = {
MODULE_DEVICE_TABLE(parisc, serial_tbl);
static struct parisc_driver serial1_driver = {
name: "Serial RS232",
id_table: serial1_tbl,
probe: serial_init_chip,
.name = "Serial RS232",
.id_table = serial1_tbl,
.probe = serial_init_chip,
};
static struct parisc_driver serial_driver = {
name: "Serial RS232",
id_table: serial_tbl,
probe: serial_init_chip,
.name = "Serial RS232",
.id_table = serial_tbl,
.probe = serial_init_chip,
};
int __init probe_serial_gsc(void)
......
......@@ -1853,12 +1853,12 @@ void mcfrs_console_write(struct console *cp, const char *p, unsigned len)
*/
struct console mcfrs_console = {
name: "ttyS",
write: mcfrs_console_write,
device: mcfrs_console_device,
setup: mcfrs_console_setup,
flags: CON_PRINTBUFFER,
index: -1,
.name = "ttyS",
.write = mcfrs_console_write,
.device = mcfrs_console_device,
.setup = mcfrs_console_setup,
.flags = CON_PRINTBUFFER,
.index = -1,
};
void __init mcfrs_console_init(void)
......
......@@ -255,12 +255,12 @@ static kdev_t nb85e_uart_cons_device (struct console *c)
static struct console nb85e_uart_cons =
{
name: "ttyS",
write: nb85e_uart_cons_write,
device: nb85e_uart_cons_device,
flags: CON_PRINTBUFFER,
cflag: NB85E_UART_INIT_CFLAGS,
index: -1,
.name = "ttyS",
.write = nb85e_uart_cons_write,
.device = nb85e_uart_cons_device,
.flags = CON_PRINTBUFFER,
.cflag = NB85E_UART_INIT_CFLAGS,
.index = -1,
};
void nb85e_uart_cons_init (unsigned chan)
......
......@@ -731,9 +731,9 @@ int uart00_remove_devices(void)
}
struct pld_hotswap_ops uart00_pldhs_ops={
name: "uart00",
add_device: uart00_add_device,
remove_devices:uart00_remove_devices,
.name = "uart00",
.add_device = uart00_add_device,
.remove_devices = uart00_remove_devices,
};
#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