]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0828ce2d13ea9d53aa1620649eeba36d7e7df7a1
tree7be505e76bd8e2e929b91cce5ffa8a0d6f60b272
parentcc040bb2d7828da57e4544780b83c682e9ceb036
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: ee3dcae27ab9 ("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