Skip to content

Commit

Permalink
sunsu: Pass true 'ignore_line' to console match when RSC or LOM console.
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Nov 24, 2009
1 parent 457931d commit 1917d17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/serial/sunsu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,7 @@ static int __devinit su_probe(struct of_device *op, const struct of_device_id *m
struct uart_sunsu_port *up;
struct resource *rp;
enum su_type type;
bool ignore_line;
int err;

type = su_get_type(dp);
Expand Down Expand Up @@ -1467,9 +1468,14 @@ static int __devinit su_probe(struct of_device *op, const struct of_device_id *m

up->port.ops = &sunsu_pops;

ignore_line = false;
if (!strcmp(dp->name, "rsc-console") ||
!strcmp(dp->name, "lom-console"))
ignore_line = true;

sunserial_console_match(SUNSU_CONSOLE(), dp,
&sunsu_reg, up->port.line,
false);
ignore_line);
err = uart_add_one_port(&sunsu_reg, &up->port);
if (err)
goto out_unmap;
Expand Down

0 comments on commit 1917d17

Please sign in to comment.