fdt_property_file() takes the property name as an argument but ignores it and always writes a literal "data" property. Every caller passes FIT_DATA_PROP, so use the argument.
No functional change. Signed-off-by: Aristo Chen <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> --- v2: new patch, split out of v1 patch 1 as suggested by Quentin, no code changes, Reviewed-by from v1 patch 1 kept tools/fit_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fit_image.c b/tools/fit_image.c index f7d11904472..077906889ca 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -250,7 +250,7 @@ static int fdt_property_file(struct image_tool_params *params, goto err; } - ret = fdt_property_placeholder(fdt, "data", sbuf.st_size, &ptr); + ret = fdt_property_placeholder(fdt, name, sbuf.st_size, &ptr); if (ret) goto err; ret = read(fd, ptr, sbuf.st_size); -- 2.43.0
