From: Paul Cercueil <paul.cercueil@bootlin.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Paul Cercueil <paul.cercueil@bootlin.com>
Subject: [PATCH v2 04/12] mtd: physmap: Remove #ifdef guards around shutdown callback
Date: Tue, 17 Nov 2026 10:37:42 +0100 [thread overview]
Message-ID: <20261117093751.14988-5-paul.cercueil@bootlin.com> (raw)
In-Reply-To: <20261117093751.14988-1-paul.cercueil@bootlin.com>
physmap_flash_shutdown() calls mtd_suspend() and mtd_resume().
Unlike what their names suggest, those two functions aren't related to
CONFIG_PM, and neither is the platform_driver.shutdown() callback.
Signed-off-by: Paul Cercueil <paul.cercueil@bootlin.com>
---
v2: Don't use pm_ptr(), and rewrite commit message
---
drivers/mtd/maps/physmap-core.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/mtd/maps/physmap-core.c b/drivers/mtd/maps/physmap-core.c
index dcda7685fc99..672747890972 100644
--- a/drivers/mtd/maps/physmap-core.c
+++ b/drivers/mtd/maps/physmap-core.c
@@ -600,7 +600,6 @@ static int physmap_flash_probe(struct platform_device *dev)
return err;
}
-#ifdef CONFIG_PM
static void physmap_flash_shutdown(struct platform_device *dev)
{
struct physmap_flash_info *info = platform_get_drvdata(dev);
@@ -610,9 +609,6 @@ static void physmap_flash_shutdown(struct platform_device *dev)
if (mtd_suspend(info->mtds[i]) == 0)
mtd_resume(info->mtds[i]);
}
-#else
-#define physmap_flash_shutdown NULL
-#endif
static struct platform_driver physmap_flash_driver = {
.probe = physmap_flash_probe,
--
2.47.3
next prev parent reply other threads:[~2026-11-17 9:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 9:37 [PATCH v2 00/12] mtd: Remove #ifdef guards for PM functions Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 01/12] mtd: Remove #ifdef guards for PM related functions Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 02/12] mtd: rawnand: vf610: " Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 03/12] mtd: spear_smi: " Paul Cercueil
2026-11-17 9:37 ` Paul Cercueil [this message]
2026-11-17 9:37 ` [PATCH v2 05/12] mtd: maps: pxa2xx: Remove #ifdef guards around shutdown callback Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 06/12] mtd: nand: mtk: Remove #ifdef guards for PM related functions Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 07/12] mtd: rawnand: fsmc: " Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 08/12] mtd: rawnand: hisi504: " Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 09/12] mtd: rawnand: mtk: " Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 10/12] mtd: rawnand: omap_elm: " Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 11/12] mtd: rawnand: r852: " Paul Cercueil
2026-11-17 9:37 ` [PATCH v2 12/12] mtd: rawnand: txx9ndfmc: " Paul Cercueil
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=20261117093751.14988-5-paul.cercueil@bootlin.com \
--to=paul.cercueil@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=thomas.petazzoni@bootlin.com \
--cc=vigneshr@ti.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®