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>
This commit is contained in:
parent
e22057c859
commit
2a0352fa4a
3 changed files with 9 additions and 11 deletions
|
|
@ -62,7 +62,7 @@ void * __devinit eeh_dev_init(struct device_node *dn, void *data)
|
|||
}
|
||||
|
||||
/* Associate EEH device with OF node */
|
||||
dn->edev = edev;
|
||||
PCI_DN(dn)->edev = edev;
|
||||
edev->dn = dn;
|
||||
edev->phb = phb;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue