From: Przemyslaw Marczak Date: Mon, 28 Jul 2014 09:00:34 +0000 (+0200) Subject: fdt_support: remove type static in fdt_read_prop() X-Git-Tag: submit/tizen/20150522.044923~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dce819d4caaccc6310c32bfd0a5ce4829233a379;p=platform%2Fkernel%2Fu-boot.git fdt_support: remove type static in fdt_read_prop() Change-Id: Iaff9eff27dba6fc6f13d031a96f310361648acfd Signed-off-by: Przemyslaw Marczak --- diff --git a/common/fdt_support.c b/common/fdt_support.c index 9e50148462..fa7ccdf6f2 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1408,7 +1408,7 @@ u64 fdt_get_base_address(void *fdt, int node) /* * Read a property of size . Currently only supports 1 or 2 cells. */ -static int fdt_read_prop(const fdt32_t *prop, int prop_len, int cell_off, +int fdt_read_prop(const fdt32_t *prop, int prop_len, int cell_off, uint64_t *val, int cells) { const fdt32_t *prop32 = &prop[cell_off]; diff --git a/include/fdt_support.h b/include/fdt_support.h index 5d4f28dc78..3c09924e32 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -132,6 +132,8 @@ 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); +int fdt_read_prop(const fdt32_t *prop, int prop_len, int cell_off, + uint64_t *val, int cells); int fdt_read_range(void *fdt, int node, int n, uint64_t *child_addr, uint64_t *addr, uint64_t *len);