aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorYuval Mintz <yuvalmin@broadcom.com>2014-01-27 10:11:58 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-27 15:57:31 -0500
commit5f6db130b5dab96eb1fe6b2c1d1131a74149f949 (patch)
tree134ff10a15842cda7db8f92fd84a438112357a2d /drivers/net
parent27d79f3b1071b2a2d58443a130e92c381c838e5d (diff)
bnx2x: More Shutdown revisions
Submission d9aee59 "bnx2x: Don't release PCI bars on shutdown" separated the PCI remove and shutdown flows, but pci_disable_device() is still being called on both. As a result, a dev_WARN_ONCE will be hit during shutdown for every bnx2x VF probed on a hypervisor (as its shutdown callback will be called and later pci_disable_sriov() will call its remove callback). This calls the pci_disable_device() only on the remove flow. Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index e118a3ec62bc..c9c445e7b4a5 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -13102,9 +13102,9 @@ static void __bnx2x_remove(struct pci_dev *pdev,
13102 13102
13103 if (atomic_read(&pdev->enable_cnt) == 1) 13103 if (atomic_read(&pdev->enable_cnt) == 1)
13104 pci_release_regions(pdev); 13104 pci_release_regions(pdev);
13105 }
13106 13105
13107 pci_disable_device(pdev); 13106 pci_disable_device(pdev);
13107 }
13108} 13108}
13109 13109
13110static void bnx2x_remove_one(struct pci_dev *pdev) 13110static void bnx2x_remove_one(struct pci_dev *pdev)