|
@@ -307,6 +307,9 @@ void __init pci_addr_cache_build(void)
|
|
/* Save the BAR's; firmware doesn't restore these after EEH reset */
|
|
/* Save the BAR's; firmware doesn't restore these after EEH reset */
|
|
dn = pci_device_to_OF_node(dev);
|
|
dn = pci_device_to_OF_node(dev);
|
|
eeh_save_bars(dev, PCI_DN(dn));
|
|
eeh_save_bars(dev, PCI_DN(dn));
|
|
|
|
+
|
|
|
|
+ pci_dev_get (dev); /* matching put is in eeh_remove_device() */
|
|
|
|
+ PCI_DN(dn)->pcidev = dev;
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef DEBUG
|
|
#ifdef DEBUG
|