* [PATCH] FIT: Use const dtb unflatten variant
@ 2018-01-31 11:13 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2018-01-31 11:13 UTC (permalink / raw)
To: Barebox List
This reduces the memory usage of the FIT image support. Instead of copying
the image from the DTB to the unflattened tree we let the unflattened tree
reference the data from the DTB.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
common/image-fit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/image-fit.c b/common/image-fit.c
index 3d0eaf4987..048425ac0b 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -691,7 +691,7 @@ static int fit_do_open(struct fit_handle *handle)
const char *desc = "(no description)";
struct device_node *root;
- root = of_unflatten_dtb(handle->fit);
+ root = of_unflatten_dtb_const(handle->fit);
if (IS_ERR(root))
return PTR_ERR(root);
--
2.15.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-31 11:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 11:13 [PATCH] FIT: Use const dtb unflatten variant Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox