Skip to content

Commit

Permalink
Staging: hv: storvsc: Cleanup the module init function in storvsc_drv.c
Browse files Browse the repository at this point in the history
Get rid of unnecessary layering in the module init path.

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: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent c63ba9e commit d9bbae8
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ static struct hv_driver storvsc_drv = {
/*
* storvsc_drv_init - StorVsc driver initialization.
*/
static int storvsc_drv_init(void)
static int __init storvsc_drv_init(void)
{
int ret;
struct hv_driver *drv = &storvsc_drv;
Expand Down Expand Up @@ -797,17 +797,8 @@ static void __exit storvsc_drv_exit(void)
vmbus_child_driver_unregister(&storvsc_drv.driver);
}

static int __init storvsc_init(void)
{
int ret;

DPRINT_INFO(STORVSC_DRV, "Storvsc initializing....");
ret = storvsc_drv_init();
return ret;
}

MODULE_LICENSE("GPL");
MODULE_VERSION(HV_DRV_VERSION);
MODULE_DESCRIPTION("Microsoft Hyper-V virtual storage driver");
module_init(storvsc_init);
module_init(storvsc_drv_init);
module_exit(storvsc_drv_exit);

0 comments on commit d9bbae8

Please sign in to comment.