summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/netvsc_drv.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan2011-05-10 16:55:15 +0200
committerGreg Kroah-Hartman2011-05-11 22:48:55 +0200
commitf752e9befd5cd6420fae1939ca8a82ab25e83f5d (patch)
tree6f4896eaa58fcbc9991bc3eb27418c6d186d3c01 /drivers/staging/hv/netvsc_drv.c
parentStaging: hv: Get rid of cleanup from struct hv_driver (diff)
downloadkernel-qcow2-linux-f752e9befd5cd6420fae1939ca8a82ab25e83f5d.tar.gz
kernel-qcow2-linux-f752e9befd5cd6420fae1939ca8a82ab25e83f5d.tar.xz
kernel-qcow2-linux-f752e9befd5cd6420fae1939ca8a82ab25e83f5d.zip
Staging: hv: netvsc_drv: Rename the variable g_netvsc_drv
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Abhishek Kane <v-abkane@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/netvsc_drv.c')
-rw-r--r--drivers/staging/hv/netvsc_drv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index 0e81a933d5fc..25883ca6304e 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -61,7 +61,7 @@ module_param(ring_size, int, S_IRUGO);
MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)");
/* The one and only one */
-static struct netvsc_driver g_netvsc_drv;
+static struct netvsc_driver netvsc_drv;
/* no-op so the netdev core doesn't return -EINVAL when modifying the the
* multicast address list in SIOCADDMULTI. hv is setup to get all multicast
@@ -444,7 +444,7 @@ static int netvsc_drv_exit_cb(struct device *dev, void *data)
static void netvsc_drv_exit(void)
{
- struct hv_driver *drv = &g_netvsc_drv.base;
+ struct hv_driver *drv = &netvsc_drv.base;
struct device *current_dev;
int ret;
@@ -472,8 +472,8 @@ static void netvsc_drv_exit(void)
static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
{
- struct netvsc_driver *net_drv_obj = &g_netvsc_drv;
- struct hv_driver *drv = &g_netvsc_drv.base;
+ struct netvsc_driver *net_drv_obj = &netvsc_drv;
+ struct hv_driver *drv = &netvsc_drv.base;
int ret;
net_drv_obj->ring_buf_size = ring_size * PAGE_SIZE;