[SERIAL] sunsab: Fix significant typo in sab_probe()
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 13 Jul 2006 23:07:25 +0000 (16:07 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sat, 15 Jul 2006 00:00:25 +0000 (17:00 -0700)
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>
drivers/serial/sunsab.c

index 0dbd4df44c05140499f03bbcb8e2d33be236d3fa..979497f108c8678511dd44a7112664d3a8f817d0 100644 (file)
@@ -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,