aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/pata_cs5520.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c
index 6bf037d82b5a..7dc76e71bd55 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
275 275
276 for (i = 0; i < 2; i++) { 276 for (i = 0; i < 2; i++) {
277 static const int irq[] = { 14, 15 }; 277 static const int irq[] = { 14, 15 };
278 struct ata_port *ap = host->ports[0]; 278 struct ata_port *ap = host->ports[i];
279 279
280 if (ata_port_is_dummy(ap)) 280 if (ata_port_is_dummy(ap))
281 continue; 281 continue;