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: Ladislav Michl <ladis@linux-mips.org> Fix nits in commit message: Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
446d4e048e
commit
136026f18e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user