aboutsummaryrefslogtreecommitdiff
path: root/cmd/mtd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mtd.c')
-rw-r--r--cmd/mtd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/mtd.c b/cmd/mtd.c
index 485a963..2aabfd4 100644
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -126,6 +126,13 @@ static void mtd_show_device(struct mtd_info *mtd)
printf(" - driver: %s\n", mtd->dev->driver->name);
}
#endif
+ if (IS_ENABLED(CONFIG_OF_CONTROL) && mtd->dev) {
+ char buf[256];
+ int res;
+
+ res = ofnode_get_path(mtd_get_ofnode(mtd), buf, 256);
+ printf(" - path: %s\n", res == 0 ? buf : "unavailable");
+ }
/* MTD device information */
printf(" - type: ");