All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] cmd: mtd: simplify mtd_show_device()
@ 2024-09-09 23:23 Heinrich Schuchardt
  2024-09-10  7:30 ` Miquel Raynal
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2024-09-09 23:23 UTC (permalink / raw)
  To: Tom Rini
  Cc: Dario Binacchi, Miquel Raynal, Simon Glass, Arseniy Krasnov,
	u-boot, Heinrich Schuchardt

CONFIG_DM=y is always true.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 cmd/mtd.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cmd/mtd.c b/cmd/mtd.c
index 795aaa2b37d..260b26076ed 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -121,13 +121,11 @@ static void mtd_show_device(struct mtd_info *mtd)
 {
 	/* Device */
 	printf("* %s\n", mtd->name);
-#if defined(CONFIG_DM)
 	if (mtd->dev) {
 		printf("  - device: %s\n", mtd->dev->name);
 		printf("  - parent: %s\n", mtd->dev->parent->name);
 		printf("  - driver: %s\n", mtd->dev->driver->name);
 	}
-#endif
 	if (IS_ENABLED(CONFIG_OF_CONTROL) && mtd->dev) {
 		char buf[256];
 		int res;
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] cmd: mtd: simplify mtd_show_device()
  2024-09-09 23:23 [PATCH 1/1] cmd: mtd: simplify mtd_show_device() Heinrich Schuchardt
@ 2024-09-10  7:30 ` Miquel Raynal
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2024-09-10  7:30 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: Tom Rini, Dario Binacchi, Simon Glass, Arseniy Krasnov, u-boot

Hi Heinrich,

heinrich.schuchardt@canonical.com wrote on Tue, 10 Sep 2024 01:23:34
+0200:

> CONFIG_DM=y is always true.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks,
Miquèl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-10  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-09 23:23 [PATCH 1/1] cmd: mtd: simplify mtd_show_device() Heinrich Schuchardt
2024-09-10  7:30 ` Miquel Raynal

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.