[PATCH] cpm_uart: needs some love to compile with GCC4.0.1

From: Kumar Gala
Date: Mon Aug 08 2005 - 22:43:14 EST


Fixed problems so we can build with gcc-4.0.1

Signed-off-by: Peter Schaefer-Hutter <peter.schaefer-hutter@xxxxxxxxxxxxxx>
Signed-off-by: Kumar Gala <kumar.gala@xxxxxxxxxxxxx>

---
commit dcc63579f883d388c5b4f69c4adc82423cab1de2
tree f856b999bdc0182e6299ec0000d4432380af0ac0
parent 1de80554bcae877dce3b6d878053eb092ef65c72
author Kumar K. Gala <kumar.gala@xxxxxxxxxxxxx> Mon, 08 Aug 2005 22:38:28 -0500
committer Kumar K. Gala <kumar.gala@xxxxxxxxxxxxx> Mon, 08 Aug 2005 22:38:28 -0500

drivers/serial/cpm_uart/cpm_uart_core.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c
--- a/drivers/serial/cpm_uart/cpm_uart_core.c
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c
@@ -1134,14 +1134,14 @@ static int __init cpm_uart_console_setup
return 0;
}

-extern struct uart_driver cpm_reg;
+static struct uart_driver cpm_reg;
static struct console cpm_scc_uart_console = {
- .name "ttyCPM",
- .write cpm_uart_console_write,
- .device uart_console_device,
- .setup cpm_uart_console_setup,
- .flags CON_PRINTBUFFER,
- .index -1,
+ .name = "ttyCPM",
+ .write = cpm_uart_console_write,
+ .device = uart_console_device,
+ .setup = cpm_uart_console_setup,
+ .flags = CON_PRINTBUFFER,
+ .index = -1,
.data = &cpm_reg,
};

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/