fdt_support: remove type static in fdt_read_prop()
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 28 Jul 2014 09:00:34 +0000 (11:00 +0200)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Fri, 4 Dec 2015 15:31:01 +0000 (16:31 +0100)
Change-Id: Iaff9eff27dba6fc6f13d031a96f310361648acfd
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
common/fdt_support.c
include/fdt_support.h

index a7ff2dfb81f8ea3cbe54298d9fe758a246c31e55..747733b91e5f457602d7044f2c1a9e0fa87b0ddc 100644 (file)
@@ -1441,7 +1441,7 @@ u64 fdt_get_base_address(void *fdt, int node)
 /*
  * Read a property of size <prop_len>. 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];
index 296add01f34f9ece7f172b4a59c3cff9eb63d474..782392dfc56170b6828df33b938ec3c1733a7eeb 100644 (file)
@@ -185,6 +185,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);