diff mbox series

[2/2] spi: spi-fsl-lpspi: Pass pm_ptr()

Message ID 20240625183919.368770-2-festevam@gmail.com (mailing list archive)
State Accepted
Commit 14201399457ce5314224c2898c936bfaa5849fcb
Headers show
Series [1/2] spi: spi-imx: Pass pm_ptr() | expand

Commit Message

Fabio Estevam June 25, 2024, 6:39 p.m. UTC
From: Fabio Estevam <festevam@denx.de>

After coverting to SYSTEM_SLEEP_PM_OPS, it is necessary to pass pm_ptr()
to the PM operations.

Fix it accordingly.

Fixes: 6765e859fac9 ("spi: spi-fsl-lpspi: Switch to SYSTEM_SLEEP_PM_OPS()")
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
 drivers/spi/spi-fsl-lpspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c
index 2908a5532482..32baa14dfd83 100644
--- a/drivers/spi/spi-fsl-lpspi.c
+++ b/drivers/spi/spi-fsl-lpspi.c
@@ -991,7 +991,7 @@  static struct platform_driver fsl_lpspi_driver = {
 	.driver = {
 		.name = DRIVER_NAME,
 		.of_match_table = fsl_lpspi_dt_ids,
-		.pm = &fsl_lpspi_pm_ops,
+		.pm = pm_ptr(&fsl_lpspi_pm_ops),
 	},
 	.probe = fsl_lpspi_probe,
 	.remove_new = fsl_lpspi_remove,