summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/health.c
diff options
context:
space:
mode:
authorParav Pandit2019-04-29 20:14:02 +0200
committerSaeed Mahameed2019-04-30 01:55:05 +0200
commit27b942fbbd3107d4e969ece133925cd646239ef4 (patch)
tree3101e5df55edf86390a242db9cf9de3de9c95171 /drivers/net/ethernet/mellanox/mlx5/core/health.c
parentnet/mlx5: E-Switch: Introduce prio tag mode (diff)
downloadkernel-qcow2-linux-27b942fbbd3107d4e969ece133925cd646239ef4.tar.gz
kernel-qcow2-linux-27b942fbbd3107d4e969ece133925cd646239ef4.tar.xz
kernel-qcow2-linux-27b942fbbd3107d4e969ece133925cd646239ef4.zip
net/mlx5: Get rid of storing copy of device name
Currently mlx5 core stores copy of the PCI device name in a mlx5_priv structure and uses pr_warn, pr_err helpers. Get rid of the copy of this name; instead store the parent device pointer that contains name as well as dma specific parameters. This also allows to use kernel's well defined dev_warn, dev_err, dev_dbg device specific print routines. This is also a preparation patch to access non PCI parent device in future. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/health.c')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/health.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/health.c b/drivers/net/ethernet/mellanox/mlx5/core/health.c
index 3b98fcdd7d0e..a2656f4008d9 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/health.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/health.c
@@ -380,7 +380,7 @@ int mlx5_health_init(struct mlx5_core_dev *dev)
return -ENOMEM;
strcpy(name, "mlx5_health");
- strcat(name, dev->priv.name);
+ strcat(name, dev_name(dev->device));
health->wq = create_singlethread_workqueue(name);
kfree(name);
if (!health->wq)