summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-30 16:12:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-08 09:05:01 +0100
commitbdf5be35d7b7d4b74de0e101e9b874d41235b157 (patch)
tree118bc5bcced98d94ee3651163545aee535026420 /common
parent69b589a00aa6e3324547bbc73f9f659e28c709f9 (diff)
downloadbarebox-bdf5be35d7b7d4b74de0e101e9b874d41235b157.tar.gz
barebox-bdf5be35d7b7d4b74de0e101e9b874d41235b157.tar.xz
FIT: Use const dtb unflatten variant
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 3fab52db2e..6cbf23250d 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -695,7 +695,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);