[PATCH 03/10] iio: accel: mma9551: remove redundant pm_runtime_dont_use_autosuspend() calls
From: Joshua Crofts
Date: Thu Nov 05 2026 - 07:33:48 EST
Since commit d1706f9da9f4 ("PM: runtime: call pm_runtime_dont_use_autosuspend() on reinit()"),
driver core is now responsible for undoing any
pm_runtime_use_autosuspend() calls on driver exit.
Remove the redundant function calls.
Signed-off-by: Joshua Crofts <crofts@xxxxxxxxxx>
---
drivers/iio/accel/mma9551.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/iio/accel/mma9551.c b/drivers/iio/accel/mma9551.c
index b260e294606a..f1a39a9acd06 100644
--- a/drivers/iio/accel/mma9551.c
+++ b/drivers/iio/accel/mma9551.c
@@ -485,7 +485,6 @@ static int mma9551_probe(struct i2c_client *client)
return 0;
err_pm_cleanup:
- pm_runtime_dont_use_autosuspend(&client->dev);
pm_runtime_disable(&client->dev);
out_poweroff:
mma9551_set_device_state(client, false);
@@ -500,7 +499,6 @@ static void mma9551_remove(struct i2c_client *client)
iio_device_unregister(indio_dev);
- pm_runtime_dont_use_autosuspend(&client->dev);
pm_runtime_disable(&client->dev);
pm_runtime_set_suspended(&client->dev);
--
2.47.3