]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mvebu: armada-37xx: use use platform api
authorPeng Fan <peng.fan@nxp.com>
Wed, 18 Dec 2019 12:43:53 +0000 (12:43 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jan 2020 15:06:11 +0000 (16:06 +0100)
commit673395781e1750720baeab80e21a5d8da497ed41
tree2a52ce60a74b8be429a02ebf553a5c2ec4b62132
parent17685b028d5c9136defb331e20c1711419ed2b83
pinctrl: mvebu: armada-37xx: use use platform api

platform_irq_count() and platform_get_irq() 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-1-git-send-email-peng.fan@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c