diff options
author | Linas Vepstas <linas@linas.org> | 2005-11-03 19:54:34 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-09 23:29:43 -0500 |
commit | 821b537fd7bf9018f1df4b882cea199613147f65 (patch) | |
tree | ba22846f6fe8002f105f46e21e60617995d6fb9e /arch/powerpc/platforms/pseries/eeh_cache.c | |
parent | 9fb40eb883ad2d22ad6975b4323cb76e018fa280 (diff) |
[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: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from beb45c93d494a11c36e5b24f638e610db8428b54 commit)
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh_cache.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_cache.c b/arch/powerpc/platforms/pseries/eeh_cache.c index 9fe2a7de04c..ff6c938f424 100644 --- a/arch/powerpc/platforms/pseries/eeh_cache.c +++ b/arch/powerpc/platforms/pseries/eeh_cache.c | |||
@@ -307,6 +307,9 @@ void __init pci_addr_cache_build(void) | |||
307 | /* Save the BAR's; firmware doesn't restore these after EEH reset */ | 307 | /* Save the BAR's; firmware doesn't restore these after EEH reset */ |
308 | dn = pci_device_to_OF_node(dev); | 308 | dn = pci_device_to_OF_node(dev); |
309 | eeh_save_bars(dev, PCI_DN(dn)); | 309 | eeh_save_bars(dev, PCI_DN(dn)); |
310 | |||
311 | pci_dev_get (dev); /* matching put is in eeh_remove_device() */ | ||
312 | PCI_DN(dn)->pcidev = dev; | ||
310 | } | 313 | } |
311 | 314 | ||
312 | #ifdef DEBUG | 315 | #ifdef DEBUG |