pinctrl: stm32: Enable suspend/resume for stm32mp157c SoC

Apply suspend/resume management for stm32mp157c MPU.

Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Alexandre Torgue 2019-05-10 09:42:30 +02:00 committed by Linus Walleij
parent e2f3cf18c3
commit a45623ddd0

View File

@ -2342,11 +2342,16 @@ static const struct of_device_id stm32mp157_pctrl_match[] = {
{ } { }
}; };
static const struct dev_pm_ops stm32_pinctrl_dev_pm_ops = {
SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, stm32_pinctrl_resume)
};
static struct platform_driver stm32mp157_pinctrl_driver = { static struct platform_driver stm32mp157_pinctrl_driver = {
.probe = stm32_pctl_probe, .probe = stm32_pctl_probe,
.driver = { .driver = {
.name = "stm32mp157-pinctrl", .name = "stm32mp157-pinctrl",
.of_match_table = stm32mp157_pctrl_match, .of_match_table = stm32mp157_pctrl_match,
.pm = &stm32_pinctrl_dev_pm_ops,
}, },
}; };