diff options
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index f02d8b2f799d..d46a18ffbebb 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -58,6 +58,9 @@ struct device_node { | |||
58 | struct kref kref; | 58 | struct kref kref; |
59 | unsigned long _flags; | 59 | unsigned long _flags; |
60 | void *data; | 60 | void *data; |
61 | #if defined(CONFIG_EEH) | ||
62 | struct eeh_dev *edev; | ||
63 | #endif | ||
61 | #if defined(CONFIG_SPARC) | 64 | #if defined(CONFIG_SPARC) |
62 | char *path_component_name; | 65 | char *path_component_name; |
63 | unsigned int unique_id; | 66 | unsigned int unique_id; |
@@ -72,6 +75,13 @@ struct of_phandle_args { | |||
72 | uint32_t args[MAX_PHANDLE_ARGS]; | 75 | uint32_t args[MAX_PHANDLE_ARGS]; |
73 | }; | 76 | }; |
74 | 77 | ||
78 | #if defined(CONFIG_EEH) | ||
79 | static inline struct eeh_dev *of_node_to_eeh_dev(struct device_node *dn) | ||
80 | { | ||
81 | return dn->edev; | ||
82 | } | ||
83 | #endif | ||
84 | |||
75 | #ifdef CONFIG_OF_DYNAMIC | 85 | #ifdef CONFIG_OF_DYNAMIC |
76 | extern struct device_node *of_node_get(struct device_node *node); | 86 | extern struct device_node *of_node_get(struct device_node *node); |
77 | extern void of_node_put(struct device_node *node); | 87 | extern void of_node_put(struct device_node *node); |