pinctrl: bcm2835: Accept fewer than expected IRQs
authorPhil Elwell <phil@raspberrypi.com>
Fri, 21 May 2021 09:01:58 +0000 (12:01 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 28 May 2021 00:56:13 +0000 (02:56 +0200)
commit4bc80da53317edd1c31c183203aa7d8809c42667
tree68954e3b79ddfc77568341cf400bccf0956c10c4
parentb9045af9fb26f2d81acb32a6d6f5bbfe6fb6c670
pinctrl: bcm2835: Accept fewer than expected IRQs

The downstream .dts files only request two GPIO IRQs. Truncate the
array of parent IRQs when irq_of_parse_and_map returns 0.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210521090158.26932-1-iivanov@suse.de
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c