diff options
author | Rob Herring | 2014-04-22 19:55:10 +0200 |
---|---|---|
committer | Rob Herring | 2014-04-30 07:59:18 +0200 |
commit | c0556d3f2c3f42eaed049139ce6f0899ecdb0217 (patch) | |
tree | 9bfbb3c61b640a8492e95f0cdff10c9734376c09 /include/linux/of_fdt.h | |
parent | of/fdt: fix phys_addr_t related print size warnings (diff) | |
download | kernel-qcow2-linux-c0556d3f2c3f42eaed049139ce6f0899ecdb0217.tar.gz kernel-qcow2-linux-c0556d3f2c3f42eaed049139ce6f0899ecdb0217.tar.xz kernel-qcow2-linux-c0556d3f2c3f42eaed049139ce6f0899ecdb0217.zip |
of/fdt: introduce of_get_flat_dt_size
Add a wrapper function to retrieve the FDT size from the FDT header. This
is primarily to avoid libfdt include paths for the whole kernel.
Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Stephen Chivers <schivers@csc.com>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r-- | include/linux/of_fdt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 348dae2c8a3c..e10099c95999 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h @@ -92,6 +92,7 @@ extern const void *of_get_flat_dt_prop(unsigned long node, const char *name, extern int of_flat_dt_is_compatible(unsigned long node, const char *name); extern int of_flat_dt_match(unsigned long node, const char *const *matches); extern unsigned long of_get_flat_dt_root(void); +extern int of_get_flat_dt_size(void); extern int early_init_dt_scan_chosen(unsigned long node, const char *uname, int depth, void *data); |