Skip to content

Commit 0a32763

Browse files
committed
pinctrl: sunrisepoint: 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 4a3b7e6 commit 0a32763

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

@@ -579,14 +580,12 @@ static const struct acpi_device_id spt_pinctrl_acpi_match[] = {
579580
};
580581
MODULE_DEVICE_TABLE(acpi, spt_pinctrl_acpi_match);
581582

582-
static INTEL_PINCTRL_PM_OPS(spt_pinctrl_pm_ops);
583-
584583
static struct platform_driver spt_pinctrl_driver = {
585584
.probe = intel_pinctrl_probe_by_hid,
586585
.driver = {
587586
.name = "sunrisepoint-pinctrl",
588587
.acpi_match_table = spt_pinctrl_acpi_match,
589-
.pm = &spt_pinctrl_pm_ops,
588+
.pm = pm_sleep_ptr(&intel_pinctrl_pm_ops),
590589
},
591590
};
592591

0 commit comments

Comments
 (0)