Skip to content

Commit

Permalink
Staging: hv: Move the declaration of the variable netvsc_drv
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed May 11, 2011
1 parent f752e9b commit f1542a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ static int ring_size = 128;
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 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
* when it calls RndisFilterOnOpen() */
Expand Down Expand Up @@ -442,6 +439,9 @@ static int netvsc_drv_exit_cb(struct device *dev, void *data)
return 1;
}

/* The one and only one */
static struct netvsc_driver netvsc_drv;

static void netvsc_drv_exit(void)
{
struct hv_driver *drv = &netvsc_drv.base;
Expand Down

0 comments on commit f1542a6

Please sign in to comment.