cmd: mtd: simplify mtd_show_device()
CONFIG_DM=y is always true.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Michael Trimarchi <michael@amarulasolutions.com>
(cherry picked from commit 75ad667aad)
This commit is contained in:
committed by
Simon Glass
parent
077d219278
commit
44728bc928
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user