gpio: dwapb: Don't use IRQ 0 as valid Linux interrupt
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 May 2020 13:12:32 +0000 (16:12 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 May 2020 09:05:09 +0000 (11:05 +0200)
commitaa90939d22973765cc6318c6748c272b954e202f
treefdbb026e309a420f3d410354f35e2775c037a16c
parentd7cc23604f367c0d0f272f0af55e2032de50a053
gpio: dwapb: Don't use IRQ 0 as valid Linux interrupt

IRQ 0 is not valid in Linux interrupt number space.
Refactor the code with this kept in mind.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/20200519131233.59032-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-dwapb.c