From: Alan Cox Date: Fri, 20 Jul 2007 14:36:31 +0000 (+0100) Subject: pata_cs5520: Fix probe bug regression introduced in 2.6.22 X-Git-Tag: v2.6.23-rc1~208 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8c6b065b792061c2e471d530127f2348fd9d243d;p=linux-2.6-omap-h63xx.git pata_cs5520: Fix probe bug regression introduced in 2.6.22 Signed-off-by: Alan Cox Signed-off-by: Linux Torvalds --- diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c index 6bf037d82b5..7dc76e71bd5 100644 --- a/drivers/ata/pata_cs5520.c +++ b/drivers/ata/pata_cs5520.c @@ -275,7 +275,7 @@ static int __devinit cs5520_init_one(struct pci_dev *pdev, const struct pci_devi for (i = 0; i < 2; i++) { static const int irq[] = { 14, 15 }; - struct ata_port *ap = host->ports[0]; + struct ata_port *ap = host->ports[i]; if (ata_port_is_dummy(ap)) continue;