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)
commitf314f20b70356d9bb2bf1c854fae49922b626f6b
treeeb00290b42cb2c75c632c223b106c7ce889612a7
parent4b4e41f35cc700e328e693f0c18b24424ab47ff0
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