Skip to content

Commit

Permalink
[SERIAL] sunsab: Fix significant typo in sab_probe()
Browse files Browse the repository at this point in the history
Instead of initializing both ports of a SAB device
properly, we were setting up the first port
structure twice and ending up only with the second
port, oops.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 15, 2006
1 parent c964521 commit 5b4bbb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/sunsab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ static int __devinit sab_probe(struct of_device *op, const struct of_device_id *
if (err)
return err;

err = sunsab_init_one(&up[0], op, 0,
err = sunsab_init_one(&up[1], op, 0,
(inst * 2) + 1);
if (err) {
of_iounmap(up[0].port.membase,
Expand Down

0 comments on commit 5b4bbb3

Please sign in to comment.