Skip to content

Commit 4a3b7e6

Browse files
committed
pinctrl: meteorlake: 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 5d5e83f commit 4a3b7e6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pinctrl/intel/pinctrl-meteorlake.c

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

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

@@ -589,14 +590,12 @@ static const struct acpi_device_id mtl_pinctrl_acpi_match[] = {
589590
};
590591
MODULE_DEVICE_TABLE(acpi, mtl_pinctrl_acpi_match);
591592

592-
static INTEL_PINCTRL_PM_OPS(mtl_pinctrl_pm_ops);
593-
594593
static struct platform_driver mtl_pinctrl_driver = {
595594
.probe = intel_pinctrl_probe_by_hid,
596595
.driver = {
597596
.name = "meteorlake-pinctrl",
598597
.acpi_match_table = mtl_pinctrl_acpi_match,
599-
.pm = &mtl_pinctrl_pm_ops,
598+
.pm = pm_sleep_ptr(&intel_pinctrl_pm_ops),
600599
},
601600
};
602601
module_platform_driver(mtl_pinctrl_driver);

0 commit comments

Comments
 (0)