[PATCH 2/4] media: i2c: tc358746: remove redundant pm_runtime_dont_use_autosuspend() calls
From: Joshua Crofts
Date: Tue Nov 10 2026 - 09:12:45 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/media/i2c/tc358746.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/media/i2c/tc358746.c b/drivers/media/i2c/tc358746.c
index 91d26a6340230186239b7586e73345fb755c5164..d123a530bb879d31111e971c702bb6f96794a8e2 100644
--- a/drivers/media/i2c/tc358746.c
+++ b/drivers/media/i2c/tc358746.c
@@ -1596,7 +1596,6 @@ static int tc358746_probe(struct i2c_client *client)
err_pm:
pm_runtime_disable(dev);
pm_runtime_set_suspended(dev);
- pm_runtime_dont_use_autosuspend(dev);
v4l2_ctrl_handler_free(&tc358746->ctrl_hdl);
err_fwnode:
v4l2_fwnode_endpoint_free(&tc358746->csi_vep);
@@ -1622,7 +1621,6 @@ static void tc358746_remove(struct i2c_client *client)
pm_runtime_disable(sd->dev);
pm_runtime_set_suspended(sd->dev);
- pm_runtime_dont_use_autosuspend(sd->dev);
}
/*
--
2.47.3