Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: jasperlake: Switch to use Intel pin control PM ops

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-12-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-jasperlake.c
··· 9 9 #include <linux/mod_devicetable.h> 10 10 #include <linux/module.h> 11 11 #include <linux/platform_device.h> 12 + #include <linux/pm.h> 12 13 13 14 #include <linux/pinctrl/pinctrl.h> 14 15 ··· 327 326 }; 328 327 MODULE_DEVICE_TABLE(acpi, jsl_pinctrl_acpi_match); 329 328 330 - static INTEL_PINCTRL_PM_OPS(jsl_pinctrl_pm_ops); 331 - 332 329 static struct platform_driver jsl_pinctrl_driver = { 333 330 .probe = intel_pinctrl_probe_by_hid, 334 331 .driver = { 335 332 .name = "jasperlake-pinctrl", 336 333 .acpi_match_table = jsl_pinctrl_acpi_match, 337 - .pm = &jsl_pinctrl_pm_ops, 334 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 338 335 }, 339 336 }; 340 337 module_platform_driver(jsl_pinctrl_driver);