diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2013-03-27 08:56:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-27 23:26:14 -0400 |
commit | 8b49a4c75965ed157e21450d23dcadd6b27c1aa3 (patch) | |
tree | 96aac5b9ffe6f67da7570eaf61cef34795655794 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |
parent | f3d4039242af92a9d93dee2fd9ae47066b20ca29 (diff) | |
download | op-kernel-dev-8b49a4c75965ed157e21450d23dcadd6b27c1aa3.zip op-kernel-dev-8b49a4c75965ed157e21450d23dcadd6b27c1aa3.tar.gz |
bnx2x: fix compilation without CONFIG_BNX2X_SRIOV
Move mutex initialization by allocation of the mailbox it protects.
introduced in commit 1d6f3cd89 'bnx2x: Prevent VF race'
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 10af03e..fdfe33b 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -12522,7 +12522,6 @@ static int bnx2x_init_one(struct pci_dev *pdev, */ if (IS_VF(bp)) { bp->doorbells = bnx2x_vf_doorbells(bp); - mutex_init(&bp->vf2pf_mutex); rc = bnx2x_vf_pci_alloc(bp); if (rc) goto init_one_exit; |