pinctrl: elkhartlake: Switch to use Intel pin control PM ops
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 30 Oct 2023 12:07:24 +0000 (14:07 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 13 Nov 2023 11:33:27 +0000 (13:33 +0200)
The main driver conditionally exports the PM ops structure.
Switch this driver to use it instead of customly wrapped one.

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231030120734.2831419-8-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-elkhartlake.c

index 81581ab..1678634 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/mod_devicetable.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
+#include <linux/pm.h>
 
 #include <linux/pinctrl/pinctrl.h>
 
@@ -485,14 +486,12 @@ static const struct acpi_device_id ehl_pinctrl_acpi_match[] = {
 };
 MODULE_DEVICE_TABLE(acpi, ehl_pinctrl_acpi_match);
 
-static INTEL_PINCTRL_PM_OPS(ehl_pinctrl_pm_ops);
-
 static struct platform_driver ehl_pinctrl_driver = {
        .probe = intel_pinctrl_probe_by_uid,
        .driver = {
                .name = "elkhartlake-pinctrl",
                .acpi_match_table = ehl_pinctrl_acpi_match,
-               .pm = &ehl_pinctrl_pm_ops,
+               .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops),
        },
 };
 module_platform_driver(ehl_pinctrl_driver);