From: Dragos Tatulea The data direct PCI driver uses KBUILD_MODNAME as its driver name, which resolves to "mlx5_ib". This is misleading (the driver binds the data direct PCIe function, not an IB device) and would silently change to "mlx5_core" when the driver is relocated there. Name the driver explicitly "mlx5_dd". Signed-off-by: Dragos Tatulea Reviewed-by: Leon Romanovsky Reviewed-by: Cosmin Ratiu Signed-off-by: Tariq Toukan --- drivers/infiniband/hw/mlx5/data_direct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/data_direct.c b/drivers/infiniband/hw/mlx5/data_direct.c index 8d006b611c63..a80778f2b9b2 100644 --- a/drivers/infiniband/hw/mlx5/data_direct.c +++ b/drivers/infiniband/hw/mlx5/data_direct.c @@ -240,7 +240,7 @@ static void mlx5_data_direct_remove(struct pci_dev *pdev) } static struct pci_driver mlx5_data_direct_driver = { - .name = KBUILD_MODNAME, + .name = "mlx5_dd", .id_table = mlx5_data_direct_pci_table, .probe = mlx5_data_direct_probe, .remove = mlx5_data_direct_remove, -- 2.44.0