OSDN Git Service

gpio/mvebu: Use irq_domain_add_linear
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 19 Oct 2016 21:03:41 +0000 (15:03 -0600)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Nov 2016 18:31:49 +0000 (19:31 +0100)
commit812d47889a8e418d7bea9bec383581a34c19183e
tree7be505e76bd8e2e929b91cce5ffa8a0d6f60b272
parentc7e9d39831a31682285cc31ddf7dd06c0fe59138
gpio/mvebu: Use irq_domain_add_linear

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: ce931f571b6d ("gpio/mvebu: convert to use irq_domain_add_simple()")
Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c