Skip to contentSkip to conversation

common: fdt_support: Remove check for mtdparts in fdt_fixup_mtdparts

PATCH New Ladislav Michl 2 participants 2 messages Jan 9, 2017 – Feb 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common: fdt_support: Remove check for mtdparts in fdt_fixup_mtdparts

fdt_fixup_mtdparts currently does nothing when partitin info is runtime generated or compiled-in defaults are used.

---
 common/fdt_support.c | 5 -----
 1 file changed, 5 deletions(-)
common/fdt_support.c +0 -5
index c9f7019e38..a57a5759e4 100644
@@ -903,14 +903,9 @@ void fdt_fixup_mtdparts(void *blob, void *node_info, int node_info_size)
 {
 	struct node_info *ni = node_info;
 	struct mtd_device *dev;
-	char *parts;
 	int i, idx;
 	int noff;
 
-	parts = getenv("mtdparts");
-	if (!parts)
-		return;
-
 	if (mtdparts_init() != 0)
 		return;
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 common: fdt_support: Remove check for mtdparts in fdt_fixup_mtdparts

Quoted 7 lines · Ladislav Michl

fdt_fixup_mtdparts currently does nothing when partitin info is runtime generated or compiled-in defaults are used.

---
 common/fdt_support.c | 5 -----
 1 file changed, 5 deletions(-)

Fixed commit message nits and

Applied to u-boot-dm, thanks!