From: Heinrich Schuchardt Date: Mon, 9 Sep 2024 23:23:34 +0000 (+0200) Subject: cmd: mtd: simplify mtd_show_device() X-Git-Tag: v2025.04-rc1~17^2~42^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75ad667aad2a6f488d894633e1a8656137572adc;p=pandora-u-boot.git cmd: mtd: simplify mtd_show_device() CONFIG_DM=y is always true. Signed-off-by: Heinrich Schuchardt Reviewed-by: Miquel Raynal Acked-by: Michael Trimarchi --- diff --git a/cmd/mtd.c b/cmd/mtd.c index f178d7bea61..c25997cfb24 100644 --- a/cmd/mtd.c +++ b/cmd/mtd.c @@ -122,13 +122,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;