910-ixp4xx-nr_irq_lines.patch 669 B

12345678910111213141516171819202122
  1. --- a/arch/arm/mach-ixp4xx/ixdp425-pci.c
  2. +++ b/arch/arm/mach-ixp4xx/ixdp425-pci.c
  3. @@ -53,7 +53,7 @@ static int __init ixdp425_map_irq(const
  4. };
  5. if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
  6. - return pci_irq_table[(slot + pin - 2) % 4];
  7. + return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
  8. return -1;
  9. }
  10. --- a/arch/arm/mach-ixp4xx/miccpt-pci.c
  11. +++ b/arch/arm/mach-ixp4xx/miccpt-pci.c
  12. @@ -54,7 +54,7 @@ static int __init miccpt_map_irq(const s
  13. };
  14. if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
  15. - return pci_irq_table[(slot + pin - 2) % 4];
  16. + return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
  17. return -1;
  18. }