aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 33c184d3dcd8..eb8d4b4c5dfc 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -1011,10 +1011,13 @@ static inline int of_get_available_child_count(const struct device_node *np)
1011#endif 1011#endif
1012 1012
1013typedef int (*of_init_fn_2)(struct device_node *, struct device_node *); 1013typedef int (*of_init_fn_2)(struct device_node *, struct device_node *);
1014typedef int (*of_init_fn_1_ret)(struct device_node *);
1014typedef void (*of_init_fn_1)(struct device_node *); 1015typedef void (*of_init_fn_1)(struct device_node *);
1015 1016
1016#define OF_DECLARE_1(table, name, compat, fn) \ 1017#define OF_DECLARE_1(table, name, compat, fn) \
1017 _OF_DECLARE(table, name, compat, fn, of_init_fn_1) 1018 _OF_DECLARE(table, name, compat, fn, of_init_fn_1)
1019#define OF_DECLARE_1_RET(table, name, compat, fn) \
1020 _OF_DECLARE(table, name, compat, fn, of_init_fn_1_ret)
1018#define OF_DECLARE_2(table, name, compat, fn) \ 1021#define OF_DECLARE_2(table, name, compat, fn) \
1019 _OF_DECLARE(table, name, compat, fn, of_init_fn_2) 1022 _OF_DECLARE(table, name, compat, fn, of_init_fn_2)
1020 1023