bnx2x: fix compilation without CONFIG_BNX2X_SRIOV
authorDmitry Kravkov <dmitry@broadcom.com>
Wed, 27 Mar 2013 08:56:10 +0000 (08:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Mar 2013 03:26:14 +0000 (23:26 -0400)
commit8b49a4c75965ed157e21450d23dcadd6b27c1aa3
tree96aac5b9ffe6f67da7570eaf61cef34795655794
parentf3d4039242af92a9d93dee2fd9ae47066b20ca29
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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c