pinctrl:starfive: Add system pm interface
authorJianlong Huang <jianlong.huang@starfivetech.com>
Wed, 19 Oct 2022 10:00:02 +0000 (18:00 +0800)
committermason.huo <mason.huo@starfivetech.com>
Thu, 27 Oct 2022 05:56:39 +0000 (13:56 +0800)
Support system pm fuction when suspend and resume.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c

index 1e7a20b..d7adf8b 100755 (executable)
@@ -1666,6 +1666,7 @@ static int starfive_jh7110_pinctrl_probe(struct platform_device *pdev)
 static struct platform_driver starfive_jh7110_pinctrl_driver = {
        .driver = {
                .name = "starfive_jh7110-pinctrl",
+               .pm = &starfive_pinctrl_pm_ops,
                .of_match_table = of_match_ptr(starfive_jh7110_pinctrl_of_match),
        },
        .probe = starfive_jh7110_pinctrl_probe,