summaryrefslogtreecommitdiffstats
path: root/common/fdt_support.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-23 18:58:55 -0600
committerSimon Glass <sjg@chromium.org>2014-11-21 04:43:18 +0100
commit41f09bbe594aac18fea208423494729d52b85eee (patch)
treeb050e376223faf02e4b719fc8f16d264c7ea9422 /common/fdt_support.c
parentc654b5172a65faba2b541ee1fda1738534d47241 (diff)
downloadtalos-obmc-uboot-41f09bbe594aac18fea208423494729d52b85eee.tar.gz
talos-obmc-uboot-41f09bbe594aac18fea208423494729d52b85eee.zip
fdt: Change fdt_pack_reg() to static and fix types
This function is only called within this file so make it static. Also fix its argument types to be consistent with its caller. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Anatolij Gustschin <agust@denx.de> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'common/fdt_support.c')
-rw-r--r--common/fdt_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 46a15e72a0..f9b81c6800 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -382,8 +382,8 @@ void do_fixup_by_compat_u32(void *fdt, const char *compat,
/*
* fdt_pack_reg - pack address and size array into the "reg"-suitable stream
*/
-static int fdt_pack_reg(const void *fdt, void *buf, uint64_t *address,
- uint64_t *size, int n)
+static int fdt_pack_reg(const void *fdt, void *buf, u64 *address, u64 *size,
+ int n)
{
int i;
int address_len = get_cells_len(fdt, "#address-cells");
OpenPOWER on IntegriCloud