Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188418
b: refs/heads/master
c: 21b9034
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Weber authored and Tony Lindgren committed Mar 11, 2010
1 parent 7903b1f commit 54fd3f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 9e542f37ce20428170010baa36a0ecbfcc0b29bb
refs/heads/master: 21b90340207d324f92111e25ead1752533eeb9ca
15 changes: 10 additions & 5 deletions trunk/arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,16 +644,21 @@ static void serial_out_override(struct uart_port *up, int offset, int value)
}
void __init omap_serial_early_init(void)
{
int i;
int i, nr_ports;
char name[16];

if (!(cpu_is_omap3630() || cpu_is_omap4430()))
nr_ports = 3;
else
nr_ports = ARRAY_SIZE(omap_uart);

/*
* Make sure the serial ports are muxed on at this point.
* You have to mux them off in device drivers later on
* if not needed.
*/

for (i = 0; i < ARRAY_SIZE(omap_uart); i++) {
for (i = 0; i < nr_ports; i++) {
struct omap_uart_state *uart = &omap_uart[i];
struct platform_device *pdev = &uart->pdev;
struct device *dev = &pdev->dev;
Expand All @@ -669,17 +674,17 @@ void __init omap_serial_early_init(void)
continue;
}

sprintf(name, "uart%d_ick", i+1);
sprintf(name, "uart%d_ick", i + 1);
uart->ick = clk_get(NULL, name);
if (IS_ERR(uart->ick)) {
printk(KERN_ERR "Could not get uart%d_ick\n", i+1);
printk(KERN_ERR "Could not get uart%d_ick\n", i + 1);
uart->ick = NULL;
}

sprintf(name, "uart%d_fck", i+1);
uart->fck = clk_get(NULL, name);
if (IS_ERR(uart->fck)) {
printk(KERN_ERR "Could not get uart%d_fck\n", i+1);
printk(KERN_ERR "Could not get uart%d_fck\n", i + 1);
uart->fck = NULL;
}

Expand Down

0 comments on commit 54fd3f3

Please sign in to comment.