]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sunxi: sun50i-h5 use platform_irq_count
authorPeng Fan <peng.fan@nxp.com>
Wed, 18 Dec 2019 12:43:56 +0000 (12:43 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 7 Jan 2020 08:55:33 +0000 (09:55 +0100)
commit10dd04998f16ad00d82031c5dd9aa8095b86fbb1
treeeb00290b42cb2c75c632c223b106c7ce889612a7
parentfce3825da82c23f6a70f382672634a8c79352117
pinctrl: sunxi: sun50i-h5 use platform_irq_count

platform_irq_count() is the more generic way (independent of
device trees) to determine the count of available interrupts. So
use this instead.

As platform_irq_count() might return an error code (which
of_irq_count doesn't) some additional handling is necessary.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/1576672860-14420-2-git-send-email-peng.fan@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sun50i-h5.c