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

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

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-geminilake.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 ··· 448 447 }; 449 448 MODULE_DEVICE_TABLE(acpi, glk_pinctrl_acpi_match); 450 449 451 - static INTEL_PINCTRL_PM_OPS(glk_pinctrl_pm_ops); 452 - 453 450 static struct platform_driver glk_pinctrl_driver = { 454 451 .probe = intel_pinctrl_probe_by_uid, 455 452 .driver = { 456 453 .name = "geminilake-pinctrl", 457 454 .acpi_match_table = glk_pinctrl_acpi_match, 458 - .pm = &glk_pinctrl_pm_ops, 455 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 459 456 }, 460 457 }; 461 458