diff options
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r-- | drivers/of/base.c | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 2390ddb22d60..d1bb50719ed7 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
@@ -24,33 +24,16 @@ | |||
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/proc_fs.h> | 25 | #include <linux/proc_fs.h> |
26 | 26 | ||
27 | /** | 27 | #include "of_private.h" |
28 | * struct alias_prop - Alias property in 'aliases' node | ||
29 | * @link: List node to link the structure in aliases_lookup list | ||
30 | * @alias: Alias property name | ||
31 | * @np: Pointer to device_node that the alias stands for | ||
32 | * @id: Index value from end of alias name | ||
33 | * @stem: Alias string without the index | ||
34 | * | ||
35 | * The structure represents one alias property of 'aliases' node as | ||
36 | * an entry in aliases_lookup list. | ||
37 | */ | ||
38 | struct alias_prop { | ||
39 | struct list_head link; | ||
40 | const char *alias; | ||
41 | struct device_node *np; | ||
42 | int id; | ||
43 | char stem[0]; | ||
44 | }; | ||
45 | 28 | ||
46 | static LIST_HEAD(aliases_lookup); | 29 | LIST_HEAD(aliases_lookup); |
47 | 30 | ||
48 | struct device_node *of_allnodes; | 31 | struct device_node *of_allnodes; |
49 | EXPORT_SYMBOL(of_allnodes); | 32 | EXPORT_SYMBOL(of_allnodes); |
50 | struct device_node *of_chosen; | 33 | struct device_node *of_chosen; |
51 | struct device_node *of_aliases; | 34 | struct device_node *of_aliases; |
52 | 35 | ||
53 | static DEFINE_MUTEX(of_aliases_mutex); | 36 | DEFINE_MUTEX(of_aliases_mutex); |
54 | 37 | ||
55 | /* use when traversing tree through the allnext, child, sibling, | 38 | /* use when traversing tree through the allnext, child, sibling, |
56 | * or parent members of struct device_node. | 39 | * or parent members of struct device_node. |