Skip to content
Snippets Groups Projects
Commit 136026f1 authored by Ladislav Michl's avatar Ladislav Michl Committed by Simon Glass
Browse files

common: fdt_support: Remove check for mtdparts in fdt_fixup_mtdparts


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

Signed-off-by: default avatarLadislav Michl <ladis@linux-mips.org>
Fix nits in commit message:
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 446d4e04
No related branches found
No related tags found
No related merge requests found
...@@ -903,14 +903,9 @@ void fdt_fixup_mtdparts(void *blob, void *node_info, int node_info_size) ...@@ -903,14 +903,9 @@ void fdt_fixup_mtdparts(void *blob, void *node_info, int node_info_size)
{ {
struct node_info *ni = node_info; struct node_info *ni = node_info;
struct mtd_device *dev; struct mtd_device *dev;
char *parts;
int i, idx; int i, idx;
int noff; int noff;
parts = getenv("mtdparts");
if (!parts)
return;
if (mtdparts_init() != 0) if (mtdparts_init() != 0)
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment