summaryrefslogtreecommitdiff
path: root/include/linux/of_fdt.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-01-08 21:42:42 -0700
committerGrant Likely <grant.likely@secretlab.ca>2011-01-08 21:42:42 -0700
commita081748735c5feb96b1365e78a5ff0fb6ca7e3a4 (patch)
treed9eda8a39ba1f4b7849e1fd63c3a0e5ff0215c27 /include/linux/of_fdt.h
parent672d8eafe38e9324055b8c0d0ad6e95c43b6d52a (diff)
downloadlinux-a081748735c5feb96b1365e78a5ff0fb6ca7e3a4.tar.gz
of/flattree: forward declare struct device_node in of_fdt.h
This patch forward declares struct device_node to fix a compile error when of_fdt.h is included, but of.h is not. Alternately, including linux/of.h could have been added to of_fdt.h, but that pulls in a lot of unnecessary declarations when only working with the flattened form. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r--include/linux/of_fdt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index ee96091f7d25..0ef22a1f129e 100644
--- a/include/linux/of_fdt.h
+++ b/include/linux/of_fdt.h
@@ -59,6 +59,8 @@ struct boot_param_header {
#if defined(CONFIG_OF_FLATTREE)
+struct device_node;
+
/* For scanning an arbitrary device-tree at any time */
extern char *of_fdt_get_string(struct boot_param_header *blob, u32 offset);
extern void *of_fdt_get_property(struct boot_param_header *blob,