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

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

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-lewisburg.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 ··· 302 301 .ncommunities = ARRAY_SIZE(lbg_communities), 303 302 }; 304 303 305 - static INTEL_PINCTRL_PM_OPS(lbg_pinctrl_pm_ops); 306 - 307 304 static const struct acpi_device_id lbg_pinctrl_acpi_match[] = { 308 305 { "INT3536", (kernel_ulong_t)&lbg_soc_data }, 309 306 { } ··· 313 314 .driver = { 314 315 .name = "lewisburg-pinctrl", 315 316 .acpi_match_table = lbg_pinctrl_acpi_match, 316 - .pm = &lbg_pinctrl_pm_ops, 317 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 317 318 }, 318 319 }; 319 320 module_platform_driver(lbg_pinctrl_driver);