diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 17:42:29 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 17:42:29 +0900 |
commit | 58796ce67a80e8725220af83c5a550bf6a4dab12 (patch) | |
tree | 393e6f0f97b1f8bc6c6b1f8e9494282e4c91dcd2 /arch/sh/drivers/pci/fixups-r7780rp.c | |
parent | 9f38045643859bed21068e8a7b868c961091065e (diff) | |
download | op-kernel-dev-58796ce67a80e8725220af83c5a550bf6a4dab12.zip op-kernel-dev-58796ce67a80e8725220af83c5a550bf6a4dab12.tar.gz |
sh: legacy PCI evt2irq migration.
This converts over the legacy PCI IRQs to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/fixups-r7780rp.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-r7780rp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/sh/drivers/pci/fixups-r7780rp.c b/arch/sh/drivers/pci/fixups-r7780rp.c index f9370dce..57ed3f0 100644 --- a/arch/sh/drivers/pci/fixups-r7780rp.c +++ b/arch/sh/drivers/pci/fixups-r7780rp.c @@ -12,13 +12,10 @@ */ #include <linux/pci.h> #include <linux/io.h> +#include <linux/sh_intc.h> #include "pci-sh4.h" -static char irq_tab[] __initdata = { - 65, 66, 67, 68, -}; - int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) { - return irq_tab[slot]; + return evt2irq(0xa20) + slot; } |