net/mlx5: Move pci status reg access mutex to mlx5_pci_init
authorParav Pandit <parav@mellanox.com>
Fri, 28 Jun 2019 22:36:00 +0000 (22:36 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 1 Jul 2019 23:40:30 +0000 (16:40 -0700)
commitd22663edacdfb292e7132989de93bf2828cac493
tree636557ad2d667ee990b28ef1ede30a6df903f425
parent386e75af995c3aec475a2185b919bf46af396bfc
net/mlx5: Move pci status reg access mutex to mlx5_pci_init

mlx5_pci_init() performs pci specific initialization of the
mlx5_core_dev struct.
Hence move pci_status_mutex to pci initialization routine
mlx5_pci_init().
This allows reusing mlx5_mdev_init() to non PCI devices.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c