summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-25 09:58:58 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-03-06 11:41:27 +0100
commit3afab2a83ef55f37c85c8abf13722a1f0b4c82cf (patch)
treecf893e7ae89cf33902792fd16d992f13621f46e0 /include
parentdbaf66d8f73c834ae6fca9fb1bf0a296c50d7cb9 (diff)
downloadbarebox-3afab2a83ef55f37c85c8abf13722a1f0b4c82cf.tar.gz
barebox-3afab2a83ef55f37c85c8abf13722a1f0b4c82cf.tar.xz
of: Add missing prototype for of_device_is_compatible
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 3305f03fe4..d780dcf07c 100644
--- a/include/of.h
+++ b/include/of.h
@@ -121,6 +121,9 @@ int of_get_named_gpio(struct device_node *np,
struct device_node *of_find_node_by_phandle(phandle phandle);
void of_print_property(const void *data, int len);
+int of_device_is_compatible(const struct device_node *device,
+ const char *compat);
+
int of_machine_is_compatible(const char *compat);
#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1