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

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

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-elkhartlake.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 ··· 486 485 }; 487 486 MODULE_DEVICE_TABLE(acpi, ehl_pinctrl_acpi_match); 488 487 489 - static INTEL_PINCTRL_PM_OPS(ehl_pinctrl_pm_ops); 490 - 491 488 static struct platform_driver ehl_pinctrl_driver = { 492 489 .probe = intel_pinctrl_probe_by_uid, 493 490 .driver = { 494 491 .name = "elkhartlake-pinctrl", 495 492 .acpi_match_table = ehl_pinctrl_acpi_match, 496 - .pm = &ehl_pinctrl_pm_ops, 493 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 497 494 }, 498 495 }; 499 496 module_platform_driver(ehl_pinctrl_driver);