Skip to content

Commit 5ce3422

Browse files
committed
pinctrl: jasperlake: 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 b70c674 commit 5ce3422

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

@@ -326,14 +327,12 @@ static const struct acpi_device_id jsl_pinctrl_acpi_match[] = {
326327
};
327328
MODULE_DEVICE_TABLE(acpi, jsl_pinctrl_acpi_match);
328329

329-
static INTEL_PINCTRL_PM_OPS(jsl_pinctrl_pm_ops);
330-
331330
static struct platform_driver jsl_pinctrl_driver = {
332331
.probe = intel_pinctrl_probe_by_hid,
333332
.driver = {
334333
.name = "jasperlake-pinctrl",
335334
.acpi_match_table = jsl_pinctrl_acpi_match,
336-
.pm = &jsl_pinctrl_pm_ops,
335+
.pm = pm_sleep_ptr(&intel_pinctrl_pm_ops),
337336
},
338337
};
339338
module_platform_driver(jsl_pinctrl_driver);

0 commit comments

Comments
 (0)