From: Pat Gefre Date: Mon, 1 May 2006 19:16:08 +0000 (-0700) Subject: [PATCH] Altix: correct ioc3 port order X-Git-Tag: v2.6.17-rc4~75 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2c43630fb0ff3f01c29367248ffa4a851e2c9b34;p=linux-2.6-omap-h63xx.git [PATCH] Altix: correct ioc3 port order Currently loading the ioc3 as a module will cause the ports to be numbered in reverse order. This mod maintains the proper order of cards for port numbering. Signed-off-by: Patrick Gefre Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/sn/ioc3.c b/drivers/sn/ioc3.c index 0b49ff78efc..501316b198e 100644 --- a/drivers/sn/ioc3.c +++ b/drivers/sn/ioc3.c @@ -678,7 +678,7 @@ static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) /* Track PCI-device specific data */ pci_set_drvdata(pdev, idd); down_write(&ioc3_devices_rwsem); - list_add(&idd->list, &ioc3_devices); + list_add_tail(&idd->list, &ioc3_devices); idd->id = ioc3_counter++; up_write(&ioc3_devices_rwsem);