diff --git a/common/fdt_support.c b/common/fdt_support.c index c6a76b7ad299f365d08542ed7f583f8f1f2720ea..c63b27bbb6442f4b4cbd762aeea836c1a5d415f5 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1539,7 +1539,7 @@ int fdt_verify_alias_address(void *fdt, int anode, const char *alias, u64 addr) /* * Returns the base address of an SOC or PCI node */ -u64 fdt_get_base_address(void *fdt, int node) +u64 fdt_get_base_address(const void *fdt, int node) { int size; u32 naddr; diff --git a/include/fdt_support.h b/include/fdt_support.h index 955c1217133117668acdb9ee4cf3ad7fbaecde03..6fea5c7da0c3b01d4dd095e4368d60e1c816810b 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -207,7 +207,7 @@ int fdt_add_edid(void *blob, const char *compat, unsigned char *buf); int fdt_verify_alias_address(void *fdt, int anode, const char *alias, u64 addr); -u64 fdt_get_base_address(void *fdt, int node); +u64 fdt_get_base_address(const void *fdt, int node); int fdt_read_range(void *fdt, int node, int n, uint64_t *child_addr, uint64_t *addr, uint64_t *len);