Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b4bbb3d authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent c964521c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,