]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] Altix: correct ioc3 port order
authorPat Gefre <pfg@sgi.com>
Mon, 1 May 2006 19:16:08 +0000 (12:16 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 5 Jun 2006 17:18:12 +0000 (10:18 -0700)
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 <pfg@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/sn/ioc3.c

index 93449a1a0065f5caf493097fa15c5616fe6ed221..4bd05a007224d3ecea18ebebc4ed53b9df20cb1e 100644 (file)
@@ -677,7 +677,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);