• Jason Gunthorpe's avatar
    gpio/mvebu: Use irq_domain_add_linear · 812d4788
    Jason Gunthorpe authored
    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>
    812d4788
gpio-mvebu.c 23.1 KB