All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Crofts <crofts@kernel.org>
To: "Jonathan Cameron" <jic23@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Eugen Hristev" <ehristev@kernel.org>,
	"Nicolas Ferre" <nicolas.ferre@microchip.com>,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Claudiu Beznea" <claudiu.beznea@tuxon.dev>,
	"Haibo Chen" <haibo.chen@nxp.com>, "Frank Li" <Frank.Li@nxp.com>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Pengutronix Kernel Team" <kernel@pengutronix.de>,
	"Fabio Estevam" <festevam@gmail.com>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev
Subject: [PATCH 04/10] iio: accel: mma9553: remove redundant pm_runtime_dont_use_autosuspend() calls
Date: Thu,  5 Nov 2026 12:16:29 +0000	[thread overview]
Message-ID: <20261105121635.1612-5-crofts@kernel.org> (raw)
In-Reply-To: <20261105121635.1612-1-crofts@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/iio/accel/mma9553.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/iio/accel/mma9553.c b/drivers/iio/accel/mma9553.c
index f623a0ac6f31..dacea12d702f 100644
--- a/drivers/iio/accel/mma9553.c
+++ b/drivers/iio/accel/mma9553.c
@@ -1122,7 +1122,6 @@ static int mma9553_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);
@@ -1136,7 +1135,6 @@ static void mma9553_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


  parent reply	other threads:[~2026-11-05 12:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 12:16 [PATCH 00/10] iio: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
2026-11-05 12:16 ` [PATCH 01/10] iio: accel: bmc150: remove redundant pm_runtime_dont_use_autosuspend() call Joshua Crofts
2026-11-05 12:16 ` [PATCH 02/10] iio: accel: kxcjk-1013: remove redundant pm_runtime_dont_use_autosuspend() calls Joshua Crofts
2026-11-05 12:16 ` [PATCH 03/10] iio: accel: mma9551: " Joshua Crofts
2026-11-05 12:16 ` Joshua Crofts [this message]
2026-11-05 12:16 ` [PATCH 05/10] iio: adc: at91-sama5d2_adc: remove reduntant " Joshua Crofts
2026-11-05 12:16 ` [PATCH 06/10] iio: adc: imx93_adc: remove redundant pm_runtime_dont_use_autosuspend() call Joshua Crofts
2026-11-06  2:11   ` Bough Chen
2026-11-05 12:16 ` [PATCH 07/10] iio: gyro: bmg160: " Joshua Crofts
2026-11-05 12:16 ` [PATCH 08/10] iio: imu: kmx61: " Joshua Crofts
2026-11-05 12:16 ` [PATCH 09/10] iio: light: vncl4035: " Joshua Crofts
2026-11-05 12:16 ` [PATCH 10/10] iio: magnetometer: bmc150_magn: " Joshua Crofts
2026-11-07  3:58 ` [PATCH 00/10] iio: remove redundant pm_runtime_dont_use_autosuspend() calls Jonathan Cameron

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=20261105121635.1612-5-crofts@kernel.org \
    --to=crofts@kernel.org \
    --cc=Frank.Li@nxp.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=andy@kernel.org \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=dlechner@baylibre.com \
    --cc=ehristev@kernel.org \
    --cc=festevam@gmail.com \
    --cc=haibo.chen@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=jic23@kernel.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicolas.ferre@microchip.com \
    --cc=nuno.sa@analog.com \
    --cc=s.hauer@pengutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.