diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c index 7df7fbb7cacb..34b7dc12e731 100644 --- a/arch/powerpc/platforms/pseries/eeh.c +++ b/arch/powerpc/platforms/pseries/eeh.c | |||
@@ -749,7 +749,7 @@ static void __rtas_set_slot_reset(struct pci_dn *pdn) | |||
749 | /* Determine type of EEH reset required by device, | 749 | /* Determine type of EEH reset required by device, |
750 | * default hot reset or fundamental reset | 750 | * default hot reset or fundamental reset |
751 | */ | 751 | */ |
752 | if (dev->needs_freset) | 752 | if (dev && dev->needs_freset) |
753 | rtas_pci_slot_reset(pdn, 3); | 753 | rtas_pci_slot_reset(pdn, 3); |
754 | else | 754 | else |
755 | rtas_pci_slot_reset(pdn, 1); | 755 | rtas_pci_slot_reset(pdn, 1); |