|
@@ -639,7 +639,8 @@ struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe)
|
|
|
|
|
|
if (pe->type & EEH_PE_PHB) {
|
|
if (pe->type & EEH_PE_PHB) {
|
|
bus = pe->phb->bus;
|
|
bus = pe->phb->bus;
|
|
- } else if (pe->type & EEH_PE_BUS) {
|
|
|
|
|
|
+ } else if (pe->type & EEH_PE_BUS ||
|
|
|
|
+ pe->type & EEH_PE_DEVICE) {
|
|
edev = list_first_entry(&pe->edevs, struct eeh_dev, list);
|
|
edev = list_first_entry(&pe->edevs, struct eeh_dev, list);
|
|
pdev = eeh_dev_to_pci_dev(edev);
|
|
pdev = eeh_dev_to_pci_dev(edev);
|
|
if (pdev)
|
|
if (pdev)
|