mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joshua Crofts <crofts@kernel.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>,
	 Dave Stevenson <dave.stevenson@raspberrypi.com>,
	 David Heidelberg <david@ixit.cz>,
	 Mauro Carvalho Chehab <mchehab@kernel.org>,
	 Benjamin Mugnier <benjamin.mugnier@foss.st.com>,
	 Sylvain Petinot <sylvain.petinot@foss.st.com>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	 Joshua Crofts <crofts@kernel.org>
Subject: [PATCH 2/4] media: i2c: tc358746: remove redundant pm_runtime_dont_use_autosuspend() calls
Date: Tue, 10 Nov 2026 15:03:48 +0100	[thread overview]
Message-ID: <20261110-media-remove-dont-use-autosuspend-v1-2-cc07e71b30f9@kernel.org> (raw)
In-Reply-To: <20261110-media-remove-dont-use-autosuspend-v1-0-cc07e71b30f9@kernel.org>

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@kernel.org>
---
 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


  parent reply	other threads:[~2026-11-10 14:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 14:03 [PATCH 0/4] media: " Joshua Crofts
2026-11-10 14:03 ` [PATCH 1/4] media: i2c: imx355: " Joshua Crofts
2026-11-10 14:31   ` Dave Stevenson
2026-11-10 14:03 ` Joshua Crofts [this message]
2026-11-10 14:03 ` [PATCH 3/4] media: i2c: vd55g1: " Joshua Crofts
2026-11-10 14:20   ` Benjamin Mugnier
2026-11-10 14:03 ` [PATCH 4/4] media: i2c: vd56g3: " Joshua Crofts
2026-11-10 14:20   ` Benjamin Mugnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261110-media-remove-dont-use-autosuspend-v1-2-cc07e71b30f9@kernel.org \
    --to=crofts@kernel.org \
    --cc=benjamin.mugnier@foss.st.com \
    --cc=dave.stevenson@raspberrypi.com \
    --cc=david@ixit.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=sylvain.petinot@foss.st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®