970ee49fd4b2418381f806a3f95a2c3fd22ab1fc
[openwrt.git] / target / linux / ixp4xx / patches-3.18 / 910-ixp4xx-nr_irq_lines.patch
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  
6         if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
7 -               return pci_irq_table[(slot + pin - 2) % 4];
8 +               return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
9  
10         return -1;
11  }
12 --- a/arch/arm/mach-ixp4xx/miccpt-pci.c
13 +++ b/arch/arm/mach-ixp4xx/miccpt-pci.c
14 @@ -54,7 +54,7 @@ static int __init miccpt_map_irq(const s
15         };
16  
17         if (slot >= 1 && slot <= MAX_DEV && pin >= 1 && pin <= IRQ_LINES)
18 -               return pci_irq_table[(slot + pin - 2) % 4];
19 +               return pci_irq_table[(slot + pin - 2) % IRQ_LINES];
20  
21         return -1;
22  }