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 a75a831e205..3e710d87808 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -58,6 +58,9 @@ struct device_node {  	struct	kref kref;  	unsigned long _flags;  	void	*data; +#if defined(CONFIG_EEH) +	struct eeh_dev *edev; +#endif  #if defined(CONFIG_SPARC)  	char	*path_component_name;  	unsigned int unique_id; @@ -72,6 +75,13 @@ struct of_phandle_args {  	uint32_t args[MAX_PHANDLE_ARGS];  }; +#if defined(CONFIG_EEH) +static inline struct eeh_dev *of_node_to_eeh_dev(struct device_node *dn) +{ +	return dn->edev; +} +#endif +  #if defined(CONFIG_SPARC) || !defined(CONFIG_OF)  /* Dummy ref counting routines - to be implemented later */  static inline struct device_node *of_node_get(struct device_node *node)  |