Skip to content

Commit 36d2f5a

Browse files
Kumar GalaLinus Torvalds
authored andcommitted
[PATCH] cpm_uart: needs some love to compile with GCC4.0.1
Fixed problems so we can build with gcc-4.0.1 Signed-off-by: Peter Schaefer-Hutter <peter.schaefer-hutter@tfk-racoms.com> Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 311c462 commit 36d2f5a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/serial/cpm_uart/cpm_uart_core.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,14 +1134,14 @@ static int __init cpm_uart_console_setup(struct console *co, char *options)
11341134
return 0;
11351135
}
11361136

1137-
extern struct uart_driver cpm_reg;
1137+
static struct uart_driver cpm_reg;
11381138
static struct console cpm_scc_uart_console = {
1139-
.name "ttyCPM",
1140-
.write cpm_uart_console_write,
1141-
.device uart_console_device,
1142-
.setup cpm_uart_console_setup,
1143-
.flags CON_PRINTBUFFER,
1144-
.index -1,
1139+
.name = "ttyCPM",
1140+
.write = cpm_uart_console_write,
1141+
.device = uart_console_device,
1142+
.setup = cpm_uart_console_setup,
1143+
.flags = CON_PRINTBUFFER,
1144+
.index = -1,
11451145
.data = &cpm_reg,
11461146
};
11471147

0 commit comments

Comments
 (0)