• Jason Gunthorpe's avatar
    gpio/mvebu: Use irq_domain_add_linear · f0cde548
    Jason Gunthorpe authored
    commit 812d4788 upstream.
    
    This fixes the irq allocation in this driver to not print:
     irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
     irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
    
    Which happens because the driver already called irq_alloc_descs()
    and so the change to use irq_domain_add_simple resulted in calling
    irq_alloc_descs() twice.
    
    Modernize the irq allocation in this driver to use the
    irq_domain_add_linear flow directly and eliminate the use of
    irq_domain_add_simple/legacy
    
    Fixes: ce931f57 ("gpio/mvebu: convert to use irq_domain_add_simple()")
    Signed-off-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    [bwh: Backported to 3.16:
     - Keep using irq_set_handler_data(), irq_set_chained_handler()
     - Adjust context]
    Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
    f0cde548
gpio-mvebu.c 20.9 KB