net/mlx5: FPGA, Move FPGA init/cleanup to init_once
authorIlan Tayari <ilant@mellanox.com>
Wed, 14 Jun 2017 07:19:54 +0000 (10:19 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 27 Jun 2017 13:36:47 +0000 (16:36 +0300)
commit9410733c44d768b085af3877ccf63efa298168e9
treefaf7c4d07d50ba9a11991a877fc1fb299d2d8b10
parent3f2b7edd7cf59c1ec886bd478b88cfb5d809040b
net/mlx5: FPGA, Move FPGA init/cleanup to init_once

The FPGA init and cleanup routines should be called just once per
device.
Move them to the init_once and cleanup_once routines.

Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.h
drivers/net/ethernet/mellanox/mlx5/core/main.c