|
@@ -917,7 +917,7 @@ static struct ata_probe_ent *ata_pci_init_legacy_port(struct pci_dev *pdev,
|
|
|
probe_ent->irq_flags = IRQF_SHARED;
|
|
|
|
|
|
if (port_mask & ATA_PORT_PRIMARY) {
|
|
|
- probe_ent->irq = ATA_PRIMARY_IRQ;
|
|
|
+ probe_ent->irq = ATA_PRIMARY_IRQ(pdev);
|
|
|
probe_ent->port[0].cmd_addr = ATA_PRIMARY_CMD;
|
|
|
probe_ent->port[0].altstatus_addr =
|
|
|
probe_ent->port[0].ctl_addr = ATA_PRIMARY_CTL;
|
|
@@ -933,9 +933,9 @@ static struct ata_probe_ent *ata_pci_init_legacy_port(struct pci_dev *pdev,
|
|
|
|
|
|
if (port_mask & ATA_PORT_SECONDARY) {
|
|
|
if (probe_ent->irq)
|
|
|
- probe_ent->irq2 = ATA_SECONDARY_IRQ;
|
|
|
+ probe_ent->irq2 = ATA_SECONDARY_IRQ(pdev);
|
|
|
else
|
|
|
- probe_ent->irq = ATA_SECONDARY_IRQ;
|
|
|
+ probe_ent->irq = ATA_SECONDARY_IRQ(pdev);
|
|
|
probe_ent->port[1].cmd_addr = ATA_SECONDARY_CMD;
|
|
|
probe_ent->port[1].altstatus_addr =
|
|
|
probe_ent->port[1].ctl_addr = ATA_SECONDARY_CTL;
|