1 From 5d8ae2928f71f0f9c2c3f8f13d00ecec35649ad3 Mon Sep 17 00:00:00 2001
2 From: Arnd Bergmann <arnd@arndb.de>
3 Date: Thu, 15 Dec 2022 17:42:54 +0100
4 Subject: [PATCH] pinctrl: at91: convert to NOIRQ_SYSTEM_SLEEP_PM_OPS
6 With the old SET_NOIRQ_SYSTEM_SLEEP_PM_OPS, some configs result in a
9 drivers/pinctrl/pinctrl-at91.c:1668:12: error: 'at91_gpio_resume' defined but not used [-Werror=unused-function]
10 1668 | static int at91_gpio_resume(struct device *dev)
12 drivers/pinctrl/pinctrl-at91.c:1650:12: error: 'at91_gpio_suspend' defined but not used [-Werror=unused-function]
13 1650 | static int at91_gpio_suspend(struct device *dev)
16 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
17 Reviewed-by: Ryan Wanner <Ryan.Wanner@microchip.com>
18 Link: https://lore.kernel.org/r/20221215164301.934805-1-arnd@kernel.org
19 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
21 drivers/pinctrl/pinctrl-at91.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
24 --- a/drivers/pinctrl/pinctrl-at91.c
25 +++ b/drivers/pinctrl/pinctrl-at91.c
26 @@ -1921,7 +1921,7 @@ err:
29 static const struct dev_pm_ops at91_gpio_pm_ops = {
30 - SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(at91_gpio_suspend, at91_gpio_resume)
31 + NOIRQ_SYSTEM_SLEEP_PM_OPS(at91_gpio_suspend, at91_gpio_resume)
34 static struct platform_driver at91_gpio_driver = {