Commit d31b20fc authored by Haiyang Zhang's avatar Haiyang Zhang Committed by David S. Miller

net/hyperv: Use the built-in macro KBUILD_MODNAME for this driver

Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Cc: Olaf Hering <olaf@aepfle.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4231d47e
...@@ -313,7 +313,7 @@ int netvsc_recv_callback(struct hv_device *device_obj, ...@@ -313,7 +313,7 @@ int netvsc_recv_callback(struct hv_device *device_obj,
static void netvsc_get_drvinfo(struct net_device *net, static void netvsc_get_drvinfo(struct net_device *net,
struct ethtool_drvinfo *info) struct ethtool_drvinfo *info)
{ {
strcpy(info->driver, "hv_netvsc"); strcpy(info->driver, KBUILD_MODNAME);
strcpy(info->version, HV_DRV_VERSION); strcpy(info->version, HV_DRV_VERSION);
strcpy(info->fw_version, "N/A"); strcpy(info->fw_version, "N/A");
} }
...@@ -485,7 +485,7 @@ MODULE_DEVICE_TABLE(vmbus, id_table); ...@@ -485,7 +485,7 @@ MODULE_DEVICE_TABLE(vmbus, id_table);
/* The one and only one */ /* The one and only one */
static struct hv_driver netvsc_drv = { static struct hv_driver netvsc_drv = {
.name = "netvsc", .name = KBUILD_MODNAME,
.id_table = id_table, .id_table = id_table,
.probe = netvsc_probe, .probe = netvsc_probe,
.remove = netvsc_remove, .remove = netvsc_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment