diff options
| author | Grant Likely <grant.likely@secretlab.ca> | 2011-08-04 05:27:32 -0400 |
|---|---|---|
| committer | Grant Likely <grant.likely@secretlab.ca> | 2011-08-04 06:26:24 -0400 |
| commit | fe55c1844a1c106e9d9d3dd27cbfcf8caeb9e77e (patch) | |
| tree | 85bbcd23d3f5fcc6b19abfc29d5ffea9608a6fcb /include/linux | |
| parent | 9e191b22c91873c09c722d7f956ab9f3276f9a37 (diff) | |
Revert "dt: add of_alias_scan and of_alias_get_id"
This reverts commit 750f463a749e28464151ad26938d11b07b1c43cb.
of_alias_* still needs work to be generalized for 'promtree' dt
platforms, and to no implicitly create entries for available ids.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/of.h | 8 | ||||
| -rw-r--r-- | include/linux/of_fdt.h | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index bc3dc6399547..0085bb01c041 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -68,7 +68,6 @@ struct device_node { | |||
| 68 | /* Pointer for first entry in chain of all nodes. */ | 68 | /* Pointer for first entry in chain of all nodes. */ |
| 69 | extern struct device_node *allnodes; | 69 | extern struct device_node *allnodes; |
| 70 | extern struct device_node *of_chosen; | 70 | extern struct device_node *of_chosen; |
| 71 | extern struct device_node *of_aliases; | ||
| 72 | extern rwlock_t devtree_lock; | 71 | extern rwlock_t devtree_lock; |
| 73 | 72 | ||
| 74 | static inline bool of_have_populated_dt(void) | 73 | static inline bool of_have_populated_dt(void) |
| @@ -210,9 +209,6 @@ extern int of_device_is_available(const struct device_node *device); | |||
| 210 | extern const void *of_get_property(const struct device_node *node, | 209 | extern const void *of_get_property(const struct device_node *node, |
| 211 | const char *name, | 210 | const char *name, |
| 212 | int *lenp); | 211 | int *lenp); |
| 213 | #define for_each_property(pp, properties) \ | ||
| 214 | for (pp = properties; pp != NULL; pp = pp->next) | ||
| 215 | |||
| 216 | extern int of_n_addr_cells(struct device_node *np); | 212 | extern int of_n_addr_cells(struct device_node *np); |
| 217 | extern int of_n_size_cells(struct device_node *np); | 213 | extern int of_n_size_cells(struct device_node *np); |
| 218 | extern const struct of_device_id *of_match_node( | 214 | extern const struct of_device_id *of_match_node( |
| @@ -225,10 +221,6 @@ extern int of_parse_phandles_with_args(struct device_node *np, | |||
| 225 | const char *list_name, const char *cells_name, int index, | 221 | const char *list_name, const char *cells_name, int index, |
| 226 | struct device_node **out_node, const void **out_args); | 222 | struct device_node **out_node, const void **out_args); |
| 227 | 223 | ||
| 228 | extern void *early_init_dt_alloc_memory_arch(u64 size, u64 align); | ||
| 229 | extern void of_alias_scan(void); | ||
| 230 | extern int of_alias_get_id(struct device_node *np, const char *stem); | ||
| 231 | |||
| 232 | extern int of_machine_is_compatible(const char *compat); | 224 | extern int of_machine_is_compatible(const char *compat); |
| 233 | 225 | ||
| 234 | extern int prom_add_property(struct device_node* np, struct property* prop); | 226 | extern int prom_add_property(struct device_node* np, struct property* prop); |
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index b74b74ffe0e7..c84d900fbbb3 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h | |||
| @@ -97,6 +97,7 @@ extern void early_init_dt_check_for_initrd(unsigned long node); | |||
| 97 | extern int early_init_dt_scan_memory(unsigned long node, const char *uname, | 97 | extern int early_init_dt_scan_memory(unsigned long node, const char *uname, |
| 98 | int depth, void *data); | 98 | int depth, void *data); |
| 99 | extern void early_init_dt_add_memory_arch(u64 base, u64 size); | 99 | extern void early_init_dt_add_memory_arch(u64 base, u64 size); |
| 100 | extern void * early_init_dt_alloc_memory_arch(u64 size, u64 align); | ||
| 100 | extern u64 dt_mem_next_cell(int s, __be32 **cellp); | 101 | extern u64 dt_mem_next_cell(int s, __be32 **cellp); |
| 101 | 102 | ||
| 102 | /* | 103 | /* |
