summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-07-31 15:21:10 +0900
committerLinus Walleij <linus.walleij@linaro.org>2017-08-14 15:01:00 +0200
commit9697509e3fbef91d1c307164fbd76c20cac96370 (patch)
tree60c3427f2531a0ef877886989d6f153832f2cd6a /drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
parent4e7679834be447c3a3f91246b6d533b127386e94 (diff)
downloadlinux-stable-9697509e3fbef91d1c307164fbd76c20cac96370.tar.gz
linux-stable-9697509e3fbef91d1c307164fbd76c20cac96370.tar.bz2
linux-stable-9697509e3fbef91d1c307164fbd76c20cac96370.zip
pinctrl: uniphier: add suspend / resume support
Save registers lost in the sleep when suspending, and restore them when resuming. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c')
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
index e5bc7c36c1e4..82f754cd85d9 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
@@ -733,6 +733,7 @@ static struct platform_driver uniphier_ld20_pinctrl_driver = {
.driver = {
.name = "uniphier-ld20-pinctrl",
.of_match_table = uniphier_ld20_pinctrl_match,
+ .pm = &uniphier_pinctrl_pm_ops,
},
};
builtin_platform_driver(uniphier_ld20_pinctrl_driver);