Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45926
b: refs/heads/master
c: d28122a
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jan 24, 2007
1 parent a081e47 commit 8f57eb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f215abc69302dc027f024fe656e4841063e8fe8
refs/heads/master: d28122a5877cc40350fa801353fd5a9350563ec3
2 changes: 2 additions & 0 deletions trunk/drivers/serial/amba-pl010.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ static int __init pl010_console_setup(struct console *co, char *options)
*/
if (co->index >= UART_NR)
co->index = 0;
if (!amba_ports[co->index])
return -ENODEV;
port = &amba_ports[co->index]->port;

if (options)
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/serial/amba-pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,8 @@ static int __init pl011_console_setup(struct console *co, char *options)
if (co->index >= UART_NR)
co->index = 0;
uap = amba_ports[co->index];
if (!uap)
return -ENODEV;

uap->port.uartclk = clk_get_rate(uap->clk);

Expand Down

0 comments on commit 8f57eb3

Please sign in to comment.