gpio: dwapb: Rework support for 1 interrupt per port A GPIO
authorPhil Edworthy <phil.edworthy@renesas.com>
Wed, 23 May 2018 08:52:44 +0000 (09:52 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 23 May 2018 09:30:13 +0000 (11:30 +0200)
commitda069d5d2b814d9887989dcdb29fb0202eac8b38
tree1f2d220986cc6f0a23474c99d164fcf4a3198b3f
parentaa1fdda8f7ebf83f678e8d3c2ab4f1638c94195f
gpio: dwapb: Rework support for 1 interrupt per port A GPIO

Treat DT and ACPI the same as much as possible. Note that we can't use
platform_get_irq() to get the DT interrupts as they are in the port
sub-node and hence do not have an associated platform device.

This also fixes a problem introduced with error checking when calling
platform_get_irq().

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-dwapb.c