diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2008-12-09 16:12:22 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-01-07 11:12:55 -0800 |
commit | f0e88af855cbc5012f2e796f42686969b82d79d4 (patch) | |
tree | 1a86276151bff88e860b780894232485ffc21b7b /drivers/parisc/iosapic.c | |
parent | 30d546dac9420fc238109aec2c6596e044cc6d4c (diff) | |
download | kernel_goldelico_gta04-f0e88af855cbc5012f2e796f42686969b82d79d4.zip kernel_goldelico_gta04-f0e88af855cbc5012f2e796f42686969b82d79d4.tar.gz kernel_goldelico_gta04-f0e88af855cbc5012f2e796f42686969b82d79d4.tar.bz2 |
PCI: parisc: use generic pci_swizzle_interrupt_pin()
Use the generic pci_swizzle_interrupt_pin() instead of arch-specific code.
Acked-by: Kyle McMartin <kyle@infradead.org>
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/parisc/iosapic.c')
-rw-r--r-- | drivers/parisc/iosapic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/parisc/iosapic.c b/drivers/parisc/iosapic.c index 9dedbbd..0797659 100644 --- a/drivers/parisc/iosapic.c +++ b/drivers/parisc/iosapic.c @@ -519,8 +519,7 @@ iosapic_xlate_pin(struct iosapic_info *isi, struct pci_dev *pcidev) ** ** Advantage is it's really easy to implement. */ - intr_pin = ((intr_pin-1)+PCI_SLOT(pcidev->devfn)) % 4; - intr_pin++; /* convert back to INTA-D (1-4) */ + intr_pin = pci_swizzle_interrupt_pin(pcidev, intr_pin); #endif /* PCI_BRIDGE_FUNCS */ /* |