]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: davinci: Do not assume continuous IRQ numbering
authorKeerthy <j-keerthy@ti.com>
Wed, 13 Jun 2018 03:40:37 +0000 (09:10 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 18 Jun 2018 05:55:30 +0000 (07:55 +0200)
commiteb3744a2dd01cb07ce9f556d56d6fe451f0c313a
tree0c14eca065d5b66220dc97ffea58ea90e9644900
parentc1d013a70f557e0d6db29398c955b2ec87db1ff8
gpio: davinci: Do not assume continuous IRQ numbering

Currently the driver assumes that the interrupts are continuous
and does platform_get_irq only once and assumes the rest are continuous,
instead call platform_get_irq for all the interrupts and store them
in an array for later use.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c
include/linux/platform_data/gpio-davinci.h