nfp: move mutex init out of net code
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 26 May 2017 08:03:31 +0000 (01:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 15:01:48 +0000 (11:01 -0400)
commit346cfe8482bf491f6e3e88ea89bc0d6be2b02efd
treefebe12f6b1086e9e09ca7f425510fa67e523c085
parentc067598aceba9c5ff221cf5e215b86b9686dd009
nfp: move mutex init out of net code

Move mutex init to main file close to structure allocation.
This will allow mutex to be taken before net code runs (e.g.
from devlink callbacks).  While at it remember to destroy
the mutex.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_main.c
drivers/net/ethernet/netronome/nfp/nfp_net_main.c