Skip to content

Commit

Permalink
mlxbf_gige: remove own module name define and use KBUILD_MODNAME instead
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Thompson authored and Jakub Kicinski committed Jun 16, 2022
1 parent fbb89d0 commit cfbc80e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include "mlxbf_gige.h"
#include "mlxbf_gige_regs.h"

#define DRV_NAME "mlxbf_gige"

/* Allocate SKB whose payload pointer aligns with the Bluefield
* hardware DMA limitation, i.e. DMA operation can't cross
* a 4KB boundary. A maximum packet size of 2KB is assumed in the
Expand Down Expand Up @@ -427,7 +425,7 @@ static struct platform_driver mlxbf_gige_driver = {
.remove = mlxbf_gige_remove,
.shutdown = mlxbf_gige_shutdown,
.driver = {
.name = DRV_NAME,
.name = KBUILD_MODNAME,
.acpi_match_table = ACPI_PTR(mlxbf_gige_acpi_match),
},
};
Expand Down

0 comments on commit cfbc80e

Please sign in to comment.