summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-11-24 16:20:58 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-25 06:11:08 +0100
commitac0847b8400171e75022de257381c897fc0ba5fb (patch)
treee15f2a1e8d870f2a66e30c395f7576d49dad2094
parent7cc491383b9de67abfd5bb9e1222287243cc3741 (diff)
downloadbarebox-ac0847b8400171e75022de257381c897fc0ba5fb.tar.gz
barebox-ac0847b8400171e75022de257381c897fc0ba5fb.tar.xz
mtd: Remove set but not used of_path
struct mtd_info member of_path is set but not used, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mtd/core.c1
-rw-r--r--include/linux/mtd/mtd.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c
index 1b1ed53a61..e21c71b816 100644
--- a/drivers/mtd/core.c
+++ b/drivers/mtd/core.c
@@ -706,7 +706,6 @@ int add_mtd_device(struct mtd_info *mtd, const char *devname, int device_id)
dev_add_param_string(&mtd->dev, "partitions", mtd_partition_set, mtd_partition_get, &mtd->partition_string, mtd);
if (IS_ENABLED(CONFIG_OFDEVICE) && np) {
of_parse_partitions(&mtd->cdev, np);
- mtd->of_path = xstrdup(np->full_name);
ret = of_partitions_register_fixup(&mtd->cdev);
if (ret)
goto err1;
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index ee37dfd5cb..0e2ff4526d 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -248,7 +248,6 @@ struct mtd_info {
struct list_head partitions_entry;
char *partition_string;
- char *of_path;
unsigned int of_binding;
};