diff options
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_pe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_pe.c b/arch/powerpc/platforms/pseries/eeh_pe.c index fe43d1aa2cf1..9d4a9e8562b2 100644 --- a/arch/powerpc/platforms/pseries/eeh_pe.c +++ b/arch/powerpc/platforms/pseries/eeh_pe.c | |||
@@ -639,7 +639,8 @@ struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe) | |||
639 | 639 | ||
640 | if (pe->type & EEH_PE_PHB) { | 640 | if (pe->type & EEH_PE_PHB) { |
641 | bus = pe->phb->bus; | 641 | bus = pe->phb->bus; |
642 | } else if (pe->type & EEH_PE_BUS) { | 642 | } else if (pe->type & EEH_PE_BUS || |
643 | pe->type & EEH_PE_DEVICE) { | ||
643 | edev = list_first_entry(&pe->edevs, struct eeh_dev, list); | 644 | edev = list_first_entry(&pe->edevs, struct eeh_dev, list); |
644 | pdev = eeh_dev_to_pci_dev(edev); | 645 | pdev = eeh_dev_to_pci_dev(edev); |
645 | if (pdev) | 646 | if (pdev) |