]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita31a188ece313bea6524c3bfc17b013f88961dd9
tree68954e3b79ddfc77568341cf400bccf0956c10c4
parente5ab16fed1f7409570e9f2a4ba3e3dad73e80d1e
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