Changeset 37154


Ignore:
Timestamp:
2013-07-03T19:51:54+02:00 (5 years ago)
Author:
jogo
Message:

ixp4xx: replace magic number with macros in avila/ixdp425/miccpt PCI routing setup

Replace magic number with the appropriate macro in
avila/ixdp425/miccpt PCI routing setup.
Signed-off-by: Tamas TEVESZ <ice@…>
Signed-off-by: Jonas Gorski <jogo@…>

Location:
trunk/target/linux/ixp4xx/patches-3.10
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ixp4xx/patches-3.10/300-avila_support.patch

    r37124 r37154  
    1212  
    1313 /* PCI controller GPIO to IRQ pin mappings */ 
    14 @@ -55,9 +55,7 @@ static int __init avila_map_irq(const st 
     14@@ -55,10 +55,8 @@ static int __init avila_map_irq(const st 
    1515                IXP4XX_GPIO_IRQ(INTD) 
    1616        }; 
     
    1919-           slot <= (machine_is_loft() ? LOFT_MAX_DEV : AVILA_MAX_DEV) && 
    2020-           pin >= 1 && pin <= IRQ_LINES) 
     21-               return pci_irq_table[(slot + pin - 2) % 4]; 
    2122+       if (slot >= 1 && slot <= AVILA_MAX_DEV && pin >= 1 && pin <= IRQ_LINES) 
    22                 return pci_irq_table[(slot + pin - 2) % 4]; 
     23+               return pci_irq_table[(slot + pin - 2) % IRQ_LINES]; 
    2324  
    2425        return -1; 
     26 } 
    2527--- a/arch/arm/mach-ixp4xx/avila-setup.c 
    2628+++ b/arch/arm/mach-ixp4xx/avila-setup.c 
Note: See TracChangeset for help on using the changeset viewer.