[Intel-wired-lan] [PATCH] igb: wrap igb_disable_sriov call
Todd Fujinaka
todd.fujinaka at intel.com
Fri Aug 7 20:56:17 UTC 2015
Wrap igb_disable_sriov with #ifdef CONFIG_SRIOV
Signed-off-by: Todd Fujinaka <todd.fujinaka at intel.com>
---
drivers/net/ethernet/intel/igb/igb_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index d4b491d..1362f7b 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -2649,7 +2649,9 @@ err_eeprom:
err_sw_init:
kfree(adapter->shadow_vfta);
igb_clear_interrupt_scheme(adapter);
+#ifdef CONFIG_PCI_IOV
igb_disable_sriov(pdev);
+#endif
pci_iounmap(pdev, hw->hw_addr);
err_ioremap:
free_netdev(netdev);
More information about the Intel-wired-lan
mailing list