From: Brent Casavant Date: Thu, 4 May 2006 02:55:10 +0000 (-0700) Subject: [PATCH] Altix: correct ioc4 port order X-Git-Tag: v2.6.16.20~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3798162e57c105e6cc9f90dbd03721d34bae2162;p=thirdparty%2Fkernel%2Fstable.git [PATCH] Altix: correct ioc4 port order Currently loading the ioc4 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 Cc: Pat Gefre Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman Signed-off-by: Chris Wright --- diff --git a/drivers/sn/ioc4.c b/drivers/sn/ioc4.c index ea75b3d0612b5..771e86810c11a 100644 --- a/drivers/sn/ioc4.c +++ b/drivers/sn/ioc4.c @@ -313,7 +313,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) idd->idd_serial_data = NULL; pci_set_drvdata(idd->idd_pdev, idd); down_write(&ioc4_devices_rwsem); - list_add(&idd->idd_list, &ioc4_devices); + list_add_tail(&idd->idd_list, &ioc4_devices); up_write(&ioc4_devices_rwsem); /* Add this IOC4 to all submodules */