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

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

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-denverton.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 ··· 250 249 .ncommunities = ARRAY_SIZE(dnv_communities), 251 250 }; 252 251 253 - static INTEL_PINCTRL_PM_OPS(dnv_pinctrl_pm_ops); 254 - 255 252 static const struct acpi_device_id dnv_pinctrl_acpi_match[] = { 256 253 { "INTC3000", (kernel_ulong_t)&dnv_soc_data }, 257 254 { } ··· 267 268 .driver = { 268 269 .name = "denverton-pinctrl", 269 270 .acpi_match_table = dnv_pinctrl_acpi_match, 270 - .pm = &dnv_pinctrl_pm_ops, 271 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 271 272 }, 272 273 .id_table = dnv_pinctrl_platform_ids, 273 274 };