Skip to content

Commit

Permalink
[ARM] 2944/1: GCC 4 mx1ads serial driver compile fix
Browse files Browse the repository at this point in the history
Patch from Vincent Sanders

When building the mx1ads ARM platforms the serial driver fails to compile
with GCC 4.01 due to extern/static ambiguity.

Signed-off-by: Vincent Sanders <vince@arm.linux.org.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Vincent Sanders authored and Russell King committed Oct 1, 2005
1 parent f0e837d commit 9f4426d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ imx_console_setup(struct console *co, char *options)
return uart_set_options(&sport->port, co, baud, parity, bits, flow);
}

extern struct uart_driver imx_reg;
static struct uart_driver imx_reg;
static struct console imx_console = {
.name = "ttySMX",
.write = imx_console_write,
Expand Down

0 comments on commit 9f4426d

Please sign in to comment.