Skip to content

Commit 8e5f001

Browse files
committed
pinctrl: lakefield: 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 5ce3422 commit 8e5f001

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/pinctrl/intel/pinctrl-lakefield.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

@@ -347,14 +348,12 @@ static const struct acpi_device_id lkf_pinctrl_acpi_match[] = {
347348
};
348349
MODULE_DEVICE_TABLE(acpi, lkf_pinctrl_acpi_match);
349350

350-
static INTEL_PINCTRL_PM_OPS(lkf_pinctrl_pm_ops);
351-
352351
static struct platform_driver lkf_pinctrl_driver = {
353352
.probe = intel_pinctrl_probe_by_hid,
354353
.driver = {
355354
.name = "lakefield-pinctrl",
356355
.acpi_match_table = lkf_pinctrl_acpi_match,
357-
.pm = &lkf_pinctrl_pm_ops,
356+
.pm = pm_sleep_ptr(&intel_pinctrl_pm_ops),
358357
},
359358
};
360359
module_platform_driver(lkf_pinctrl_driver);

0 commit comments

Comments
 (0)