Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125085
b: refs/heads/master
c: b430428
h: refs/heads/master
i:
  125083: 1f34672
v: v3
  • Loading branch information
David Daney authored and Linus Torvalds committed Jan 2, 2009
1 parent 4dcbc57 commit 57f968f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc3256288b8ff9787623805e53cf7c6d5a2b4591
refs/heads/master: b430428a188e8a434325e251d0704af4b88b4711
15 changes: 13 additions & 2 deletions trunk/drivers/serial/8250.c
Original file line number Diff line number Diff line change
Expand Up @@ -2752,12 +2752,23 @@ static struct uart_driver serial8250_reg = {
*/
int __init early_serial_setup(struct uart_port *port)
{
struct uart_port *p;

if (port->line >= ARRAY_SIZE(serial8250_ports))
return -ENODEV;

serial8250_isa_init_ports();
serial8250_ports[port->line].port = *port;
serial8250_ports[port->line].port.ops = &serial8250_pops;
p = &serial8250_ports[port->line].port;
p->iobase = port->iobase;
p->membase = port->membase;
p->irq = port->irq;
p->uartclk = port->uartclk;
p->fifosize = port->fifosize;
p->regshift = port->regshift;
p->iotype = port->iotype;
p->flags = port->flags;
p->mapbase = port->mapbase;
p->private_data = port->private_data;
return 0;
}

Expand Down

0 comments on commit 57f968f

Please sign in to comment.