[PATCH 4/5] fdt: don't strip const qualifier
Lucas Stach
l.stach at pengutronix.de
Tue Dec 9 03:05:45 PST 2014
Fixes:
warning: assignment discards 'const' qualifier from pointer target type
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
drivers/of/fdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 84c38fd5a13c..d84b2037cbcc 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -64,7 +64,7 @@ struct device_node *of_unflatten_dtb(const void *infdt)
struct device_node *root, *node = NULL;
struct property *p;
uint32_t dt_struct;
- struct fdt_node_header *fnh;
+ const struct fdt_node_header *fnh;
void *dt_strings;
struct fdt_header f;
int ret;
--
2.1.3
More information about the barebox
mailing list