diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-08-30 19:27:50 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-08-31 12:25:50 +0300 |
commit | 558b34ba10e2520eb13a9c1c6b0c25f6c7b7b706 (patch) | |
tree | f6000e5338dc4d9941308f7f9c76bc402ab817d1 /drivers/pinctrl/intel | |
parent | 4ee73414a4a151880d919b0fe1962d8d21ebe699 (diff) | |
download | linux-558b34ba10e2520eb13a9c1c6b0c25f6c7b7b706.tar.xz |
pinctrl: sunrisepoint: 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')
-rw-r--r-- | drivers/pinctrl/intel/pinctrl-sunrisepoint.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c b/drivers/pinctrl/intel/pinctrl-sunrisepoint.c index c7b5272fd927..53ebceaa1ea7 100644 --- a/drivers/pinctrl/intel/pinctrl-sunrisepoint.c +++ b/drivers/pinctrl/intel/pinctrl-sunrisepoint.c @@ -597,10 +597,7 @@ static int spt_pinctrl_probe(struct platform_device *pdev) return intel_pinctrl_probe_by_hid(pdev); } -static const struct dev_pm_ops spt_pinctrl_pm_ops = { - SET_LATE_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend, - intel_pinctrl_resume) -}; +static INTEL_PINCTRL_PM_OPS(spt_pinctrl_pm_ops); static struct platform_driver spt_pinctrl_driver = { .probe = spt_pinctrl_probe, |