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

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

+2 -3
+2 -3
drivers/pinctrl/intel/pinctrl-broxton.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 ··· 1001 1000 }; 1002 1001 MODULE_DEVICE_TABLE(platform, bxt_pinctrl_platform_ids); 1003 1002 1004 - static INTEL_PINCTRL_PM_OPS(bxt_pinctrl_pm_ops); 1005 - 1006 1003 static struct platform_driver bxt_pinctrl_driver = { 1007 1004 .probe = intel_pinctrl_probe_by_uid, 1008 1005 .driver = { 1009 1006 .name = "broxton-pinctrl", 1010 1007 .acpi_match_table = bxt_pinctrl_acpi_match, 1011 - .pm = &bxt_pinctrl_pm_ops, 1008 + .pm = pm_sleep_ptr(&intel_pinctrl_pm_ops), 1012 1009 }, 1013 1010 .id_table = bxt_pinctrl_platform_ids, 1014 1011 };