]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Altix: correct ioc3 port order
authorPat Gefre <pfg@sgi.com>
Mon, 1 May 2006 19:16:08 +0000 (12:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:45 +0000 (18:17 -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>
drivers/sn/ioc3.c

index 0b49ff78efc1293f468a6cd0f80e210e5e7c8509..501316b198e51123bcaf30618f002c7de589afc0 100644 (file)
@@ -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);