diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-31 15:47:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-31 15:53:11 +0200 |
commit | 75ea5f1c0f6b93eae17470dfc62b40d254bb171b (patch) | |
tree | 3164e5635211d27ae929c8a9b48306a6e357f768 /include/of.h | |
parent | 5b79ceee575e5b51bda945fb37aff667470ce106 (diff) | |
download | barebox-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.h | 2 |
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) |