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

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

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-emmitsburg.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 ··· 359 358 }; 360 359 MODULE_DEVICE_TABLE(acpi, ebg_pinctrl_acpi_match); 361 360 362 - static INTEL_PINCTRL_PM_OPS(ebg_pinctrl_pm_ops); 363 - 364 361 static struct platform_driver ebg_pinctrl_driver = { 365 362 .probe = intel_pinctrl_probe_by_hid, 366 363 .driver = { 367 364 .name = "emmitsburg-pinctrl", 368 365 .acpi_match_table = ebg_pinctrl_acpi_match, 369 - .pm = &ebg_pinctrl_pm_ops, 366 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 370 367 }, 371 368 }; 372 369 module_platform_driver(ebg_pinctrl_driver);