Skip to content

Commit ee4c71f

Browse files
committed
pinctrl: tigerlake: 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 <[email protected]> Acked-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 0a32763 commit ee4c71f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pinctrl/intel/pinctrl-tigerlake.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/mod_devicetable.h>
1111
#include <linux/module.h>
1212
#include <linux/platform_device.h>
13+
#include <linux/pm.h>
1314

1415
#include <linux/pinctrl/pinctrl.h>
1516

@@ -743,14 +744,12 @@ static const struct acpi_device_id tgl_pinctrl_acpi_match[] = {
743744
};
744745
MODULE_DEVICE_TABLE(acpi, tgl_pinctrl_acpi_match);
745746

746-
static INTEL_PINCTRL_PM_OPS(tgl_pinctrl_pm_ops);
747-
748747
static struct platform_driver tgl_pinctrl_driver = {
749748
.probe = intel_pinctrl_probe_by_hid,
750749
.driver = {
751750
.name = "tigerlake-pinctrl",
752751
.acpi_match_table = tgl_pinctrl_acpi_match,
753-
.pm = &tgl_pinctrl_pm_ops,
752+
.pm = pm_sleep_ptr(&intel_pinctrl_pm_ops),
754753
},
755754
};
756755
module_platform_driver(tgl_pinctrl_driver);

0 commit comments

Comments
 (0)