aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ide/setup-pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/ide/setup-pci.c b/drivers/ide/setup-pci.c
index 9482288e8610..fa645fc41b86 100644
--- a/drivers/ide/setup-pci.c
+++ b/drivers/ide/setup-pci.c
@@ -572,8 +572,8 @@ int ide_pci_init_one(struct pci_dev *dev, const struct ide_port_info *d,
572 572
573 if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) || 573 if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) ||
574 (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) { 574 (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) {
575 hw[0].irq = 14; 575 hw[0].irq = pci_get_legacy_ide_irq(dev, 0);
576 hw[1].irq = 15; 576 hw[1].irq = pci_get_legacy_ide_irq(dev, 1);
577 } 577 }
578 578
579 ret = ide_host_register(host, d, hws); 579 ret = ide_host_register(host, d, hws);
@@ -629,8 +629,8 @@ int ide_pci_init_two(struct pci_dev *dev1, struct pci_dev *dev2,
629 629
630 if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) || 630 if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) ||
631 (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) { 631 (d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) {
632 hw[i*2].irq = 14; 632 hw[i*2].irq = pci_get_legacy_ide_irq(pdev[i], 0);
633 hw[i*2 + 1].irq = 15; 633 hw[i*2 + 1].irq = pci_get_legacy_ide_irq(pdev[i], 1);
634 } 634 }
635 } 635 }
636 636