]> 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)
commit8c6f377136bf1d14dd8fea28b3531bc773128a24
treefaf7c4d07d50ba9a11991a877fc1fb299d2d8b10
parent7efc22c960634ea098e407a60600aefb585ec8dc
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