|
@@ -712,7 +712,6 @@ static int pnv_ioda_set_peltv(struct pnv_phb *phb,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_PCI_IOV
|
|
|
static int pnv_ioda_deconfigure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe)
|
|
|
{
|
|
|
struct pci_dev *parent;
|
|
@@ -747,9 +746,11 @@ static int pnv_ioda_deconfigure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe)
|
|
|
}
|
|
|
rid_end = pe->rid + (count << 8);
|
|
|
} else {
|
|
|
+#ifdef CONFIG_PCI_IOV
|
|
|
if (pe->flags & PNV_IODA_PE_VF)
|
|
|
parent = pe->parent_dev;
|
|
|
else
|
|
|
+#endif
|
|
|
parent = pe->pdev->bus->self;
|
|
|
bcomp = OpalPciBusAll;
|
|
|
dcomp = OPAL_COMPARE_RID_DEVICE_NUMBER;
|
|
@@ -787,11 +788,12 @@ static int pnv_ioda_deconfigure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe)
|
|
|
|
|
|
pe->pbus = NULL;
|
|
|
pe->pdev = NULL;
|
|
|
+#ifdef CONFIG_PCI_IOV
|
|
|
pe->parent_dev = NULL;
|
|
|
+#endif
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
-#endif /* CONFIG_PCI_IOV */
|
|
|
|
|
|
static int pnv_ioda_configure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe)
|
|
|
{
|