]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca226853ba48552e2cdc02037066a87fde629059
treefaf7c4d07d50ba9a11991a877fc1fb299d2d8b10
parentf439bcee9bb26c713a2c6ddbb237c9c338e638a0
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