of/flattree: forward declare struct device_node in of_fdt.h
authorGrant Likely <grant.likely@secretlab.ca>
Sun, 9 Jan 2011 04:42:42 +0000 (21:42 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 9 Jan 2011 04:42:42 +0000 (21:42 -0700)
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>
include/linux/of_fdt.h

index ee96091f7d2576932cf5a390e36ad2247e778c20..0ef22a1f129e9f8b5d8cf95b451c70ce4cbd8d3f 100644 (file)
@@ -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,