Commit 154a61cd authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Staging: hv: Make blkvsc_drv_init the module init function

Now, get rid of the redundant function and make
blkvsc_drv_init the module init function.
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarAbhishek Kane <v-abkane@microsoft.com>
Signed-off-by: default avatarHank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3e326499
...@@ -1044,15 +1044,6 @@ static void blkvsc_request_completion(struct hv_storvsc_request *request) ...@@ -1044,15 +1044,6 @@ static void blkvsc_request_completion(struct hv_storvsc_request *request)
spin_unlock_irqrestore(&blkdev->lock, flags); 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) static void __exit blkvsc_exit(void)
{ {
blkvsc_drv_exit(); blkvsc_drv_exit();
...@@ -1061,5 +1052,5 @@ static void __exit blkvsc_exit(void) ...@@ -1061,5 +1052,5 @@ static void __exit blkvsc_exit(void)
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(HV_DRV_VERSION); MODULE_VERSION(HV_DRV_VERSION);
MODULE_DESCRIPTION("Microsoft Hyper-V virtual block driver"); MODULE_DESCRIPTION("Microsoft Hyper-V virtual block driver");
module_init(blkvsc_init); module_init(blkvsc_drv_init);
module_exit(blkvsc_exit); module_exit(blkvsc_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment