bnx2x: More Shutdown revisions
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 27 Jan 2014 15:11:58 +0000 (17:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2014 20:57:31 +0000 (12:57 -0800)
commit5f6db130b5dab96eb1fe6b2c1d1131a74149f949
tree134ff10a15842cda7db8f92fd84a438112357a2d
parent27d79f3b1071b2a2d58443a130e92c381c838e5d
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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c