Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133390
b: refs/heads/master
c: f65dedf
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Mar 24, 2009
1 parent c3c134a commit 22fafca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5bae8bf4508004d46487b3a18769d0ccff01c532
refs/heads/master: f65dedfd7b75f19bde42bafbe84fddce18c42499
16 changes: 6 additions & 10 deletions trunk/drivers/ide/setup-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,11 @@ int ide_pci_init_one(struct pci_dev *dev, const struct ide_port_info *d,
goto out;

/* fixup IRQ */
hw[1].irq = hw[0].irq = ret;

if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) ||
(d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) {
if (ide_pci_is_in_compatibility_mode(dev)) {
hw[0].irq = pci_get_legacy_ide_irq(dev, 0);
hw[1].irq = pci_get_legacy_ide_irq(dev, 1);
}
} else
hw[1].irq = hw[0].irq = ret;

ret = ide_host_register(host, d, hws);
if (ret)
Expand Down Expand Up @@ -625,13 +623,11 @@ int ide_pci_init_two(struct pci_dev *dev1, struct pci_dev *dev2,
goto out;

/* fixup IRQ */
hw[i*2 + 1].irq = hw[i*2].irq = ret;

if ((ret == 0 && (d->host_flags & IDE_HFLAG_LEGACY_IRQS)) ||
(d->host_flags & IDE_HFLAG_FORCE_LEGACY_IRQS)) {
if (ide_pci_is_in_compatibility_mode(pdev[i])) {
hw[i*2].irq = pci_get_legacy_ide_irq(pdev[i], 0);
hw[i*2 + 1].irq = pci_get_legacy_ide_irq(pdev[i], 1);
}
} else
hw[i*2 + 1].irq = hw[i*2].irq = ret;
}

ret = ide_host_register(host, d, hws);
Expand Down

0 comments on commit 22fafca

Please sign in to comment.