Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Thompson and committed by
Jakub Kicinski
cfbc80e3 fbb89d02

+1 -3
+1 -3
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c
··· 19 19 #include "mlxbf_gige.h" 20 20 #include "mlxbf_gige_regs.h" 21 21 22 - #define DRV_NAME "mlxbf_gige" 23 - 24 22 /* Allocate SKB whose payload pointer aligns with the Bluefield 25 23 * hardware DMA limitation, i.e. DMA operation can't cross 26 24 * a 4KB boundary. A maximum packet size of 2KB is assumed in the ··· 425 427 .remove = mlxbf_gige_remove, 426 428 .shutdown = mlxbf_gige_shutdown, 427 429 .driver = { 428 - .name = DRV_NAME, 430 + .name = KBUILD_MODNAME, 429 431 .acpi_match_table = ACPI_PTR(mlxbf_gige_acpi_match), 430 432 }, 431 433 };