From: David S. Miller Date: Thu, 13 Jul 2006 23:07:25 +0000 (-0700) Subject: [SERIAL] sunsab: Fix significant typo in sab_probe() X-Git-Tag: v2.6.18-rc2~7^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4bbb3d78285ab735941365c17f1c55a228c659;p=linux-2.6 [SERIAL] sunsab: Fix significant typo in sab_probe() 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 --- diff --git a/drivers/serial/sunsab.c b/drivers/serial/sunsab.c index 0dbd4df44c..979497f108 100644 --- a/drivers/serial/sunsab.c +++ b/drivers/serial/sunsab.c @@ -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,