Commit f9e0bbe6 authored by Art Haas's avatar Art Haas Committed by Andy Grover

[PATCH] C99 designated initializers for arch/mips

parent 603bca3a
...@@ -3043,12 +3043,12 @@ static int __init serial_console_setup(struct console *co, char *options) ...@@ -3043,12 +3043,12 @@ static int __init serial_console_setup(struct console *co, char *options)
} }
static struct console sercons = { static struct console sercons = {
name: "ttyS", .name = "ttyS",
write: serial_console_write, .write = serial_console_write,
device: serial_console_device, .device = serial_console_device,
setup: serial_console_setup, .setup = serial_console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: -1, .index = -1,
}; };
/* /*
......
...@@ -2772,12 +2772,12 @@ static int __init serial_console_setup(struct console *co, char *options) ...@@ -2772,12 +2772,12 @@ static int __init serial_console_setup(struct console *co, char *options)
} }
static struct console sercons = { static struct console sercons = {
name: "ttyS", .name = "ttyS",
write: serial_console_write, .write = serial_console_write,
device: serial_console_device, .device = serial_console_device,
setup: serial_console_setup, .setup = serial_console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: -1, .index = -1,
}; };
/* /*
......
...@@ -42,12 +42,12 @@ static kdev_t prom_console_device(struct console *c) ...@@ -42,12 +42,12 @@ static kdev_t prom_console_device(struct console *c)
static struct console sercons = static struct console sercons =
{ {
name: "ttyS", .name = "ttyS",
write: prom_console_write, .write = prom_console_write,
device: prom_console_device, .device = prom_console_device,
setup: prom_console_setup, .setup = prom_console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: -1, .index = -1,
}; };
/* /*
......
...@@ -953,11 +953,11 @@ static void gdb_console_write(struct console *con, const char *s, unsigned n) ...@@ -953,11 +953,11 @@ static void gdb_console_write(struct console *con, const char *s, unsigned n)
} }
static struct console gdb_console = { static struct console gdb_console = {
name: "gdb", .name = "gdb",
write: gdb_console_write, .write = gdb_console_write,
device: gdb_console_dev, .device = gdb_console_dev,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: -1 .index = -1
}; };
__init void register_gdb_console(void) __init void register_gdb_console(void)
......
...@@ -24,7 +24,7 @@ static unsigned int shouldnt_happen(void) ...@@ -24,7 +24,7 @@ static unsigned int shouldnt_happen(void)
} }
struct rtc_ops no_rtc_ops = { struct rtc_ops no_rtc_ops = {
rtc_read_data: (void *) &shouldnt_happen, .rtc_read_data = (void *) &shouldnt_happen,
rtc_write_data: (void *) &shouldnt_happen, .rtc_write_data = (void *) &shouldnt_happen,
rtc_bcd_mode: (void *) &shouldnt_happen .rtc_bcd_mode = (void *) &shouldnt_happen
}; };
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