Skip to content

Commit

Permalink
Staging: hv: storvsc_drv: Statically initialize probe/remove elements…
Browse files Browse the repository at this point in the history
… of the driver

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 7bd05b9 commit 39ae6fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,10 @@ static int storvsc_probe(struct hv_device *device)

/* The one and only one */

static struct storvsc_driver storvsc_drv;
static struct storvsc_driver storvsc_drv = {
.base.probe = storvsc_probe,
.base.remove = storvsc_remove,
};


/*
Expand All @@ -899,8 +902,6 @@ static int storvsc_drv_init(void)

drv->driver.name = storvsc_drv_obj->base.name;

drv->probe = storvsc_probe;
drv->remove = storvsc_remove;

/* The driver belongs to vmbus */
ret = vmbus_child_driver_register(&drv->driver);
Expand Down

0 comments on commit 39ae6fa

Please sign in to comment.