Changeset 35747


Ignore:
Timestamp:
2013-02-22T17:01:17+01:00 (5 years ago)
Author:
juhosg
Message:

adm5120: avoid warning caused by wrong AMBA irq values

The amba core throws a warning if -1 is used as an
irq value since upstream commit:

2eac58d5026e4ec8b17ff8b62877fea9e1d2f1b3
ARM: amba: make use of -1 IRQs warn

Make the core warn about the use of -1 (NO_IRQ)

Cange the value of the unused IRQs to zero for the
UART devices to get rid of the warning.

Based on #12729.

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/files/arch/mips/adm5120/common/platform.c

    r33825 r35747  
    201201                .flags  = IORESOURCE_MEM, 
    202202        }, 
    203         .irq            = { ADM5120_IRQ_UART0, -1 }, 
     203        .irq            = { ADM5120_IRQ_UART0, 0 }, 
    204204        .periphid       = 0x0041010, 
    205205}; 
     
    219219                .flags  = IORESOURCE_MEM, 
    220220        }, 
    221         .irq            = { ADM5120_IRQ_UART1, -1 }, 
     221        .irq            = { ADM5120_IRQ_UART1, 0 }, 
    222222        .periphid       = 0x0041010, 
    223223}; 
Note: See TracChangeset for help on using the changeset viewer.