summaryrefslogtreecommitdiff
path: root/drivers/iio/light/st_uvis25_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/light/st_uvis25_spi.c')
-rw-r--r--drivers/iio/light/st_uvis25_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/st_uvis25_spi.c b/drivers/iio/light/st_uvis25_spi.c
index 3a4dc6d7180c..86a232320d7d 100644
--- a/drivers/iio/light/st_uvis25_spi.c
+++ b/drivers/iio/light/st_uvis25_spi.c
@@ -55,7 +55,7 @@ MODULE_DEVICE_TABLE(spi, st_uvis25_spi_id_table);
static struct spi_driver st_uvis25_driver = {
.driver = {
.name = "st_uvis25_spi",
- .pm = &st_uvis25_pm_ops,
+ .pm = pm_sleep_ptr(&st_uvis25_pm_ops),
.of_match_table = st_uvis25_spi_of_match,
},
.probe = st_uvis25_spi_probe,