|
@@ -24,33 +24,16 @@
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/proc_fs.h>
|
|
#include <linux/proc_fs.h>
|
|
|
|
|
|
-/**
|
|
|
|
- * struct alias_prop - Alias property in 'aliases' node
|
|
|
|
- * @link: List node to link the structure in aliases_lookup list
|
|
|
|
- * @alias: Alias property name
|
|
|
|
- * @np: Pointer to device_node that the alias stands for
|
|
|
|
- * @id: Index value from end of alias name
|
|
|
|
- * @stem: Alias string without the index
|
|
|
|
- *
|
|
|
|
- * The structure represents one alias property of 'aliases' node as
|
|
|
|
- * an entry in aliases_lookup list.
|
|
|
|
- */
|
|
|
|
-struct alias_prop {
|
|
|
|
- struct list_head link;
|
|
|
|
- const char *alias;
|
|
|
|
- struct device_node *np;
|
|
|
|
- int id;
|
|
|
|
- char stem[0];
|
|
|
|
-};
|
|
|
|
|
|
+#include "of_private.h"
|
|
|
|
|
|
-static LIST_HEAD(aliases_lookup);
|
|
|
|
|
|
+LIST_HEAD(aliases_lookup);
|
|
|
|
|
|
struct device_node *of_allnodes;
|
|
struct device_node *of_allnodes;
|
|
EXPORT_SYMBOL(of_allnodes);
|
|
EXPORT_SYMBOL(of_allnodes);
|
|
struct device_node *of_chosen;
|
|
struct device_node *of_chosen;
|
|
struct device_node *of_aliases;
|
|
struct device_node *of_aliases;
|
|
|
|
|
|
-static DEFINE_MUTEX(of_aliases_mutex);
|
|
|
|
|
|
+DEFINE_MUTEX(of_aliases_mutex);
|
|
|
|
|
|
/* use when traversing tree through the allnext, child, sibling,
|
|
/* use when traversing tree through the allnext, child, sibling,
|
|
* or parent members of struct device_node.
|
|
* or parent members of struct device_node.
|