mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix build without "options PCI_IOV".
This commit is contained in:
parent
0252c68ba4
commit
12b204a61b
1 changed files with 4 additions and 1 deletions
|
|
@ -5644,9 +5644,10 @@ pci_cfg_restore(device_t dev, struct pci_devinfo *dinfo)
|
|||
if (dinfo->cfg.msix.msix_location != 0)
|
||||
pci_resume_msix(dev);
|
||||
|
||||
#ifdef PCI_IOV
|
||||
if (dinfo->cfg.iov != NULL)
|
||||
pci_iov_cfg_restore(dev, dinfo);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -5759,8 +5760,10 @@ pci_cfg_save(device_t dev, struct pci_devinfo *dinfo, int setstate)
|
|||
if (dinfo->cfg.pcix.pcix_location != 0)
|
||||
pci_cfg_save_pcix(dev, dinfo);
|
||||
|
||||
#ifdef PCI_IOV
|
||||
if (dinfo->cfg.iov != NULL)
|
||||
pci_iov_cfg_save(dev, dinfo);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* don't set the state for display devices, base peripherals and
|
||||
|
|
|
|||
Loading…
Reference in a new issue