]> git.baikalelectronics.ru Git - kernel.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)
commit39c32f69dd193e97e5078de88158556f477ffc54
tree0c14eca065d5b66220dc97ffea58ea90e9644900
parentbcd8b59131a366bf251377f7ffa112fa8e67df35
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