diff options
| author | Haiyang Zhang <haiyangz@microsoft.com> | 2012-03-07 05:02:00 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-03-08 16:55:27 -0500 |
| commit | d31b20fcc89efa8c5d3f5ea2720e08a286b69a36 (patch) | |
| tree | 4ce5ecc0903cfbb422b93a660b8d2a10c8429d6e | |
| parent | 4231d47e6fe69f061f96c98c30eaf9fb4c14b96d (diff) | |
net/hyperv: Use the built-in macro KBUILD_MODNAME for this driver
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Olaf Hering <olaf@aepfle.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/hyperv/netvsc_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 466c58a7353d..bf01841bda5b 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c | |||
| @@ -313,7 +313,7 @@ int netvsc_recv_callback(struct hv_device *device_obj, | |||
| 313 | static void netvsc_get_drvinfo(struct net_device *net, | 313 | static void netvsc_get_drvinfo(struct net_device *net, |
| 314 | struct ethtool_drvinfo *info) | 314 | struct ethtool_drvinfo *info) |
| 315 | { | 315 | { |
| 316 | strcpy(info->driver, "hv_netvsc"); | 316 | strcpy(info->driver, KBUILD_MODNAME); |
| 317 | strcpy(info->version, HV_DRV_VERSION); | 317 | strcpy(info->version, HV_DRV_VERSION); |
| 318 | strcpy(info->fw_version, "N/A"); | 318 | strcpy(info->fw_version, "N/A"); |
| 319 | } | 319 | } |
| @@ -485,7 +485,7 @@ MODULE_DEVICE_TABLE(vmbus, id_table); | |||
| 485 | 485 | ||
| 486 | /* The one and only one */ | 486 | /* The one and only one */ |
| 487 | static struct hv_driver netvsc_drv = { | 487 | static struct hv_driver netvsc_drv = { |
| 488 | .name = "netvsc", | 488 | .name = KBUILD_MODNAME, |
| 489 | .id_table = id_table, | 489 | .id_table = id_table, |
| 490 | .probe = netvsc_probe, | 490 | .probe = netvsc_probe, |
| 491 | .remove = netvsc_remove, | 491 | .remove = netvsc_remove, |
