Skip to content
/ linux Public

Commit cfbc80e

Browse files
dthompsokuba-moo
authored andcommitted
mlxbf_gige: remove own module name define and use KBUILD_MODNAME instead
This patch adds use of KBUILD_MODNAME as defined by the build system, replacing the definition and use of a custom-defined name. Signed-off-by: David Thompson <davthompson@nvidia.com> Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com> Link: https://lore.kernel.org/r/20220614212602.28061-1-davthompson@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent fbb89d0 commit cfbc80e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#include "mlxbf_gige.h"
2020
#include "mlxbf_gige_regs.h"
2121

22-
#define DRV_NAME "mlxbf_gige"
23-
2422
/* Allocate SKB whose payload pointer aligns with the Bluefield
2523
* hardware DMA limitation, i.e. DMA operation can't cross
2624
* a 4KB boundary. A maximum packet size of 2KB is assumed in the
@@ -427,7 +425,7 @@ static struct platform_driver mlxbf_gige_driver = {
427425
.remove = mlxbf_gige_remove,
428426
.shutdown = mlxbf_gige_shutdown,
429427
.driver = {
430-
.name = DRV_NAME,
428+
.name = KBUILD_MODNAME,
431429
.acpi_match_table = ACPI_PTR(mlxbf_gige_acpi_match),
432430
},
433431
};

0 commit comments

Comments
 (0)