• Ben Dooks's avatar
    DM9000: Pass IRQ flags via platform resources · 1a5f1c4f
    Ben Dooks authored
    Use the flags in the IRQ resource to specify the type of
    IRQ being requested, so that systems which do not have
    level-based interrupts, or change the interrupt in some
    other way can specify this without making an #ifdef mess
    in the driver.
    
    This is specifically designed to undo the change in commit
    4e4fc05a which hardwires the
    type for everyone but blackfin to IRQT_RISING, which breaks
    all a number of Simtec boards which use (and setup in the
    bootloader) active low IRQs.
    
    Note, although there where originally objections due to
    the use of IORESOURCE_IRQ and IRQT_ flags not sharing the
    same definition, at least <include/linux/interrupt.h> notes
    these are the same.
    Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
    CC: Daniel Mack <daniel@caiaq.de>
    CC: Bryan Wu <bryan.wu@analog.com>
    CC: Alex Landau <landau.alex@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    1a5f1c4f
dm9000.c 28.1 KB