summaryrefslogtreecommitdiffstats
path: root/include/of.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-05-31 15:47:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-05-31 15:53:11 +0200
commit75ea5f1c0f6b93eae17470dfc62b40d254bb171b (patch)
tree3164e5635211d27ae929c8a9b48306a6e357f768 /include/of.h
parent5b79ceee575e5b51bda945fb37aff667470ce106 (diff)
downloadbarebox-75ea5f1c0f6b93eae17470dfc62b40d254bb171b.tar.gz
barebox-75ea5f1c0f6b93eae17470dfc62b40d254bb171b.tar.xz
of: Add of_modalias_node function
Directly from the Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 4dcf37e140..89f60d4844 100644
--- a/include/of.h
+++ b/include/of.h
@@ -72,6 +72,8 @@ struct fdt_header *fdt_get_tree(void);
struct fdt_header *of_get_fixed_tree(struct device_node *node);
+int of_modalias_node(struct device_node *node, char *modalias, int len);
+
#define device_node_for_nach_child(node, child) \
list_for_each_entry(child, &node->children, parent_list)