projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f0dcca
)
ACPI: PCI: use generic pci_swizzle_interrupt_pin()
author
Bjorn Helgaas
<bjorn.helgaas@hp.com>
Tue, 17 Feb 2009 20:49:10 +0000
(13:49 -0700)
committer
Len Brown
<len.brown@intel.com>
Tue, 17 Mar 2009 05:56:30 +0000
(
01:56
-0400)
Use the generic pci_swizzle_interrupt_pin() instead of ACPI-specific code.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/pci_irq.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/pci_irq.c
b/drivers/acpi/pci_irq.c
index 891bdf6679f3ea6a21e8ab5a94db27a04b20c0e6..be6b9093f8dfc19d3c9ba1befb7a1ede37fa3026 100644
(file)
--- a/
drivers/acpi/pci_irq.c
+++ b/
drivers/acpi/pci_irq.c
@@
-319,7
+319,7
@@
static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin)
*/
bridge = dev->bus->self;
while (bridge) {
- pin =
(((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1
;
+ pin =
pci_swizzle_interrupt_pin(dev, pin)
;
if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) {
/* PC card has the same IRQ as its cardbridge */