summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/intel/pinctrl-geminilake.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-08-30 19:27:48 +0300
committerLinus Walleij <linus.walleij@linaro.org>2018-08-31 11:25:43 +0200
commit6016b099c343fa52053a0c95483355dec66abd83 (patch)
treefce1ee45d23b35138991ba1f771a2c9394999a4f /drivers/pinctrl/intel/pinctrl-geminilake.c
parentc804d8ae2083bc207c002f323fb7bd69bd45cbaf (diff)
pinctrl: geminilake: Define PM ops via INTEL_PINCTRL_PM_OPS()
Instead of open coding same structure definition for PM operations, replace it with a common macro. No functional change intended. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/intel/pinctrl-geminilake.c')
-rw-r--r--drivers/pinctrl/intel/pinctrl-geminilake.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-geminilake.c b/drivers/pinctrl/intel/pinctrl-geminilake.c
index 10452e36df73..3e7a2a16435c 100644
--- a/drivers/pinctrl/intel/pinctrl-geminilake.c
+++ b/drivers/pinctrl/intel/pinctrl-geminilake.c
@@ -459,10 +459,7 @@ static int glk_pinctrl_probe(struct platform_device *pdev)
return intel_pinctrl_probe_by_uid(pdev);
}
-static const struct dev_pm_ops glk_pinctrl_pm_ops = {
- SET_LATE_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend,
- intel_pinctrl_resume)
-};
+static INTEL_PINCTRL_PM_OPS(glk_pinctrl_pm_ops);
static struct platform_driver glk_pinctrl_driver = {
.probe = glk_pinctrl_probe,