pinctrl: stm32: fix PM support for stm32mp257
authorAntonio Borneo <antonio.borneo@foss.st.com>
Wed, 7 Feb 2024 10:46:04 +0000 (11:46 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Feb 2024 08:42:22 +0000 (09:42 +0100)
The driver for stm32mp257 is missing the suspend callback in
struct dev_pm_ops.

Add the callback, using the common stm32_pinctrl_suspend()
function.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Fixes: 619f8ca4a73d ("pinctrl: stm32: add stm32mp257 pinctrl support")
Link: https://lore.kernel.org/r/20240207104604.174843-1-antonio.borneo@foss.st.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/stm32/pinctrl-stm32mp257.c

index 73f091cd827e69edae7e2c0f4743e54c6db14b40..23aebd4695e99fbebffaf308724484f14aeb7984 100644 (file)
@@ -2562,7 +2562,7 @@ static const struct of_device_id stm32mp257_pctrl_match[] = {
 };
 
 static const struct dev_pm_ops stm32_pinctrl_dev_pm_ops = {
-        SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, stm32_pinctrl_resume)
+        SET_LATE_SYSTEM_SLEEP_PM_OPS(stm32_pinctrl_suspend, stm32_pinctrl_resume)
 };
 
 static struct platform_driver stm32mp257_pinctrl_driver = {