summaryrefslogtreecommitdiff
path: root/common/fdt_support.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:09:00 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:07 (GMT)
commitec002119cf30a7e7ef721071d890a0d8248232da (patch)
tree21749c36ec0745bb066d080b07ca3585d77496f7 /common/fdt_support.c
parent38d21b418dd2207c89cdbdd6f38f7ee512c47da1 (diff)
downloadu-boot-ec002119cf30a7e7ef721071d890a0d8248232da.tar.xz
fdt: Update fdt_get_base_address() to use const
This function does not change the device tree so adjust it to use const for this parameter. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/fdt_support.c')
-rw-r--r--common/fdt_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index c6a76b7..c63b27b 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;