diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 12:42:29 +0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 12:42:29 +0400 |
commit | 58796ce67a80e8725220af83c5a550bf6a4dab12 (patch) | |
tree | 393e6f0f97b1f8bc6c6b1f8e9494282e4c91dcd2 /arch/sh/drivers/pci/fixups-se7751.c | |
parent | 9f38045643859bed21068e8a7b868c961091065e (diff) | |
download | linux-58796ce67a80e8725220af83c5a550bf6a4dab12.tar.xz |
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-se7751.c')
-rw-r--r-- | arch/sh/drivers/pci/fixups-se7751.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/fixups-se7751.c b/arch/sh/drivers/pci/fixups-se7751.c index 2ec146c3fa44..84a88ca92008 100644 --- a/arch/sh/drivers/pci/fixups-se7751.c +++ b/arch/sh/drivers/pci/fixups-se7751.c @@ -4,13 +4,14 @@ #include <linux/delay.h> #include <linux/pci.h> #include <linux/io.h> +#include <linux/sh_intc.h> #include "pci-sh4.h" int __init pcibios_map_platform_irq(const struct pci_dev *, u8 slot, u8 pin) { switch (slot) { - case 0: return 13; - case 1: return 13; /* AMD Ethernet controller */ + case 0: return evt2irq(0x3a0); + case 1: return evt2irq(0x3a0); /* AMD Ethernet controller */ case 2: return -1; case 3: return -1; case 4: return -1; |