]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Altix: correct ioc4 port order
authorBrent Casavant <bcasavan@sgi.com>
Thu, 4 May 2006 02:55:10 +0000 (19:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 4 May 2006 03:05:41 +0000 (20:05 -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: Brent Casavant <bcasavan@sgi.com>
Cc: Pat Gefre <pfg@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/sn/ioc4.c

index 67140a5804f574b97eb6a8823f3affb3b2088830..cdeff909403e8f831870814b945df11a5e8cb4b2 100644 (file)
@@ -310,7 +310,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
        pci_set_drvdata(idd->idd_pdev, idd);
 
        mutex_lock(&ioc4_mutex);
-       list_add(&idd->idd_list, &ioc4_devices);
+       list_add_tail(&idd->idd_list, &ioc4_devices);
 
        /* Add this IOC4 to all submodules */
        list_for_each_entry(is, &ioc4_submodules, is_list) {