Skip to content

Commit

Permalink
Staging: hv: Make blkvsc_drv_init the module init function
Browse files Browse the repository at this point in the history
Now, get rid of the redundant function and make
blkvsc_drv_init the module init function.

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 3e32649 commit 154a61c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions drivers/staging/hv/blkvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,15 +1044,6 @@ static void blkvsc_request_completion(struct hv_storvsc_request *request)
spin_unlock_irqrestore(&blkdev->lock, flags);
}

static int __init blkvsc_init(void)
{
int ret;

ret = blkvsc_drv_init();

return ret;
}

static void __exit blkvsc_exit(void)
{
blkvsc_drv_exit();
Expand All @@ -1061,5 +1052,5 @@ static void __exit blkvsc_exit(void)
MODULE_LICENSE("GPL");
MODULE_VERSION(HV_DRV_VERSION);
MODULE_DESCRIPTION("Microsoft Hyper-V virtual block driver");
module_init(blkvsc_init);
module_init(blkvsc_drv_init);
module_exit(blkvsc_exit);

0 comments on commit 154a61c

Please sign in to comment.