]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 23 Feb 2017 03:54:27 +0000 (03:54 +0000)
commitf0cde54863da281cec1ed85497b4ec58d29c1460
tree14852f3638c0d7cd064ead3789b77280f935bfd5
parent754c3cd742182dc2c7df777e0612a62c1eea62a8
gpio/mvebu: Use irq_domain_add_linear

commit 812d47889a8e418d7bea9bec383581a34c19183e 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: 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>
[bwh: Backported to 3.16:
 - Keep using irq_set_handler_data(), irq_set_chained_handler()
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpio/gpio-mvebu.c