dtc: Make -I dtb mode use fill_fullpaths()

At present -I dts and -I fs modes both use the fill_fullpaths() helper
function to fill in the fullpath and basenamelen fields of struct
node, which are useful in later parts of the code.  -I dtb mode,
however, fills these in itself.

This patch simplifies flattree.c by making -I dtb mode use
fill_fullpaths() like the others.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2008-02-29 16:51:28 +11:00 committed by Jon Loeliger
parent 5ac97df149
commit b2de518b80
5 changed files with 18 additions and 45 deletions

View file

@ -37,8 +37,6 @@ struct boot_info *dt_from_source(const char *fname)
if (yyparse() != 0)
return NULL;
fill_fullpaths(the_boot_info->dt, "");
the_boot_info->error = treesource_error;
return the_boot_info;
}