Commit 821b537f authored by Linas Vepstas's avatar Linas Vepstas Committed by Paul Mackerras

[PATCH] powerpc: bugfix: fill in uninitialized field

235-eeh-set-pcidev-bugfix.patch

The pci device field of the pci_dn struct should be initialized to a
valid value.
Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
(cherry picked from beb45c93d494a11c36e5b24f638e610db8428b54 commit)
parent 9fb40eb8
...@@ -307,6 +307,9 @@ void __init pci_addr_cache_build(void) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment