aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/of.h8
-rw-r--r--include/linux/of_fdt.h10
2 files changed, 8 insertions, 10 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index fa5571b6e219..5c7b6a64acd9 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -180,6 +180,14 @@ extern int of_parse_phandles_with_args(struct device_node *np,
180 const char *list_name, const char *cells_name, int index, 180 const char *list_name, const char *cells_name, int index,
181 struct device_node **out_node, const void **out_args); 181 struct device_node **out_node, const void **out_args);
182 182
183extern int of_machine_is_compatible(const char *compat);
184
185extern int prom_add_property(struct device_node* np, struct property* prop);
186extern int prom_remove_property(struct device_node *np, struct property *prop);
187extern int prom_update_property(struct device_node *np,
188 struct property *newprop,
189 struct property *oldprop);
190
183#if defined(CONFIG_OF_DYNAMIC) 191#if defined(CONFIG_OF_DYNAMIC)
184/* For updating the device tree at runtime */ 192/* For updating the device tree at runtime */
185extern void of_attach_node(struct device_node *); 193extern void of_attach_node(struct device_node *);
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index 0007187ab59b..c9cb8a7bc065 100644
--- a/include/linux/of_fdt.h
+++ b/include/linux/of_fdt.h
@@ -95,18 +95,8 @@ extern int early_init_dt_scan_root(unsigned long node, const char *uname,
95 int depth, void *data); 95 int depth, void *data);
96 96
97/* Other Prototypes */ 97/* Other Prototypes */
98extern void finish_device_tree(void);
99extern void unflatten_device_tree(void); 98extern void unflatten_device_tree(void);
100extern void early_init_devtree(void *); 99extern void early_init_devtree(void *);
101extern int of_machine_is_compatible(const char *compat);
102extern void print_properties(struct device_node *node);
103extern int prom_n_intr_cells(struct device_node* np);
104extern void prom_get_irq_senses(unsigned char *senses, int off, int max);
105extern int prom_add_property(struct device_node* np, struct property* prop);
106extern int prom_remove_property(struct device_node *np, struct property *prop);
107extern int prom_update_property(struct device_node *np,
108 struct property *newprop,
109 struct property *oldprop);
110 100
111#endif /* __ASSEMBLY__ */ 101#endif /* __ASSEMBLY__ */
112#endif /* _LINUX_OF_FDT_H */ 102#endif /* _LINUX_OF_FDT_H */