[SPARC64] Fix sunsab ports ordering
authorMarc Zyngier <maz@misterjones.org>
Mon, 17 Jul 2006 22:53:32 +0000 (15:53 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 21 Jul 2006 21:17:57 +0000 (14:17 -0700)
Register second SAB port before the first one, as serial A is wired to
it, and expected to appear as ttyS0.

Signed-off-by: Marc Zyngier <maz@misterjones.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/serial/sunsab.c

index 979497f108c8678511dd44a7112664d3a8f817d0..cb55d81c27d9daa7f91eca5c05a96a44312a323c 100644 (file)
@@ -1061,8 +1061,8 @@ static int __devinit sab_probe(struct of_device *op, const struct of_device_id *
                return err;
        }
 
-       uart_add_one_port(&sunsab_reg, &up[0].port);
        uart_add_one_port(&sunsab_reg, &up[1].port);
+       uart_add_one_port(&sunsab_reg, &up[0].port);
 
        dev_set_drvdata(&op->dev, &up[0]);