Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32762
b: refs/heads/master
c: bda2f7b
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jul 21, 2006
1 parent dc4fd95 commit 30cdd89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 44f2650b134b423128063ded29a11454b924390e
refs/heads/master: bda2f7b4801964351253706d1a87e4d2110829a5
9 changes: 5 additions & 4 deletions trunk/drivers/serial/sunsab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1047,12 +1047,13 @@ static int __devinit sab_probe(struct of_device *op, const struct of_device_id *
up = &sunsab_ports[inst * 2];

err = sunsab_init_one(&up[0], op,
sizeof(union sab82532_async_regs),
0,
(inst * 2) + 0);
if (err)
return err;

err = sunsab_init_one(&up[1], op, 0,
err = sunsab_init_one(&up[1], op,
sizeof(union sab82532_async_regs),
(inst * 2) + 1);
if (err) {
of_iounmap(up[0].port.membase,
Expand All @@ -1061,8 +1062,8 @@ static int __devinit sab_probe(struct of_device *op, const struct of_device_id *
return err;
}

uart_add_one_port(&sunsab_reg, &up[1].port);
uart_add_one_port(&sunsab_reg, &up[0].port);
uart_add_one_port(&sunsab_reg, &up[1].port);

dev_set_drvdata(&op->dev, &up[0]);

Expand Down Expand Up @@ -1117,7 +1118,7 @@ static int __init sunsab_init(void)
int err;

num_channels = 0;
for_each_node_by_name(dp, "su")
for_each_node_by_name(dp, "se")
num_channels += 2;
for_each_node_by_name(dp, "serial") {
if (of_device_is_compatible(dp, "sab82532"))
Expand Down

0 comments on commit 30cdd89

Please sign in to comment.