summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/mediatek/pinctrl-mt6795.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-11-22 16:46:35 +0200
committerLinus Walleij <linus.walleij@linaro.org>2023-12-04 15:32:42 +0100
commit142173c4ad5a981ce2c7b97ecc283885e7e778b6 (patch)
tree389815dcb758660b87e71012fda24d7a8ab0cbcf /drivers/pinctrl/mediatek/pinctrl-mt6795.c
parent7cc4e6b0e4ddf610477fcec8e3d2a9caae7e8a6c (diff)
downloadlwn-142173c4ad5a981ce2c7b97ecc283885e7e778b6.tar.gz
lwn-142173c4ad5a981ce2c7b97ecc283885e7e778b6.zip
pinctrl: mediatek: Switch to use no-IRQ PM helpers
Since pm.h provides a helper for system no-IRQ PM callbacks, switch the driver to use it instead of open coded variant. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231122144744.2222207-1-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/mediatek/pinctrl-mt6795.c')
-rw-r--r--drivers/pinctrl/mediatek/pinctrl-mt6795.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt6795.c b/drivers/pinctrl/mediatek/pinctrl-mt6795.c
index 01e855ccd4dd..ee3ae3d2fa7e 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt6795.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt6795.c
@@ -612,7 +612,7 @@ static struct platform_driver mt6795_pinctrl_driver = {
.driver = {
.name = "mt6795-pinctrl",
.of_match_table = mt6795_pctrl_match,
- .pm = &mtk_paris_pinctrl_pm_ops,
+ .pm = pm_sleep_ptr(&mtk_paris_pinctrl_pm_ops),
},
.probe = mtk_paris_pinctrl_probe,
};