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

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

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-cedarfork.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 ··· 320 319 .ncommunities = ARRAY_SIZE(cdf_communities), 321 320 }; 322 321 323 - static INTEL_PINCTRL_PM_OPS(cdf_pinctrl_pm_ops); 324 - 325 322 static const struct acpi_device_id cdf_pinctrl_acpi_match[] = { 326 323 { "INTC3001", (kernel_ulong_t)&cdf_soc_data }, 327 324 { } ··· 331 332 .driver = { 332 333 .name = "cedarfork-pinctrl", 333 334 .acpi_match_table = cdf_pinctrl_acpi_match, 334 - .pm = &cdf_pinctrl_pm_ops, 335 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 335 336 }, 336 337 }; 337 338