Skip to content

Commit 5d5e83f

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

@@ -301,8 +302,6 @@ static const struct intel_pinctrl_soc_data lbg_soc_data = {
301302
.ncommunities = ARRAY_SIZE(lbg_communities),
302303
};
303304

304-
static INTEL_PINCTRL_PM_OPS(lbg_pinctrl_pm_ops);
305-
306305
static const struct acpi_device_id lbg_pinctrl_acpi_match[] = {
307306
{ "INT3536", (kernel_ulong_t)&lbg_soc_data },
308307
{ }
@@ -314,7 +313,7 @@ static struct platform_driver lbg_pinctrl_driver = {
314313
.driver = {
315314
.name = "lewisburg-pinctrl",
316315
.acpi_match_table = lbg_pinctrl_acpi_match,
317-
.pm = &lbg_pinctrl_pm_ops,
316+
.pm = pm_sleep_ptr(&intel_pinctrl_pm_ops),
318317
},
319318
};
320319
module_platform_driver(lbg_pinctrl_driver);

0 commit comments

Comments
 (0)