summaryrefslogtreecommitdiff
path: root/libfdt/fdt_rw.c
diff options
context:
space:
mode:
author David Gibson <david@gibson.dropbear.id.au> 2007-10-24 10:28:52 +1000
committer Jon Loeliger <jdl@freescale.com> 2007-10-24 07:58:13 -0500
commit96b5fad3a12697b8f2a50dbca944bd44c6f4eec8 (patch)
tree601cd569a6ce343ef2f8413e0d308359aea36c09 /libfdt/fdt_rw.c
parent2d50f8f9dd504f2a7b7662edd47419ad0e4c21a5 (diff)
libfdt: Rename and publish _fdt_check_header()
It's potentially useful for users of libfdt to sanity check a device tree (or, rather, a blob of data which may or may not be a device tree) before processing it in more detail with libfdt. This patch renames the libfdt internal function _fdt_check_header() to fdt_check_header() and makes it a published function, so it can now be used for this purpose. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt_rw.c')
-rw-r--r--libfdt/fdt_rw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdt/fdt_rw.c b/libfdt/fdt_rw.c
index ff74e3c..bb7a2b7 100644
--- a/libfdt/fdt_rw.c
+++ b/libfdt/fdt_rw.c
@@ -59,7 +59,7 @@ static int rw_check_header(void *fdt)
{
int err;
- if ((err = _fdt_check_header(fdt)))
+ if ((err = fdt_check_header(fdt)))
return err;
if (fdt_version(fdt) < 0x11)
return -FDT_ERR_BADVERSION;