summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-03-20 21:30:27 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-28 11:31:57 +1100
commit2a0352fa4a78081c76be1e450b51a6aa27c92616 (patch)
treecacc28c7f6058cdc5bbf3d940917ca06ef1df84e /include/linux/of.h
parente22057c8599373e5caef0bc42bdb95d2a361ab0d (diff)
downloadtalos-op-linux-2a0352fa4a78081c76be1e450b51a6aa27c92616.tar.gz
talos-op-linux-2a0352fa4a78081c76be1e450b51a6aa27c92616.zip
powerpc/eeh: Remove eeh device from OF node
Originally, the PCI sensitive OF node is tracing the eeh device through struct device_node->edev. However, it was regarded as bad idea. The patch removes struct device_node->edev and uses PCI_DN to trace the corresponding eeh device according to BenH's comments. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index d46a18ffbebb..f02d8b2f799d 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -58,9 +58,6 @@ 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;
@@ -75,13 +72,6 @@ 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
-
#ifdef CONFIG_OF_DYNAMIC
extern struct device_node *of_node_get(struct device_node *node);
extern void of_node_put(struct device_node *node);
OpenPOWER on IntegriCloud