diff options
author | K. Y. Srinivasan | 2011-06-07 00:49:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-06-07 22:45:44 +0200 |
commit | c63ba9e1e34c76b325e9eb1227994b310f9feeaa (patch) | |
tree | 4735979c7f847164eb5f967df7e8bbcd4eae18e1 /drivers/staging/hv/storvsc_drv.c | |
parent | Staging: hv: vmbus: In vmbus_child_driver_unregister() don't set the bus fiel... (diff) | |
download | kernel-qcow2-linux-c63ba9e1e34c76b325e9eb1227994b310f9feeaa.tar.gz kernel-qcow2-linux-c63ba9e1e34c76b325e9eb1227994b310f9feeaa.tar.xz kernel-qcow2-linux-c63ba9e1e34c76b325e9eb1227994b310f9feeaa.zip |
Staging: hv: storvsc: Cleanup the exit function in storvsc_drv.c
Get rid of unnecessary layering in the module exit 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>
Diffstat (limited to 'drivers/staging/hv/storvsc_drv.c')
-rw-r--r-- | drivers/staging/hv/storvsc_drv.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 942cc5f98db1..e21f7e6537bb 100644 --- a/drivers/staging/hv/storvsc_drv.c +++ b/drivers/staging/hv/storvsc_drv.c @@ -792,7 +792,7 @@ static int storvsc_drv_init(void) return ret; } -static void storvsc_drv_exit(void) +static void __exit storvsc_drv_exit(void) { vmbus_child_driver_unregister(&storvsc_drv.driver); } @@ -806,13 +806,8 @@ static int __init storvsc_init(void) return ret; } -static void __exit storvsc_exit(void) -{ - storvsc_drv_exit(); -} - MODULE_LICENSE("GPL"); MODULE_VERSION(HV_DRV_VERSION); MODULE_DESCRIPTION("Microsoft Hyper-V virtual storage driver"); module_init(storvsc_init); -module_exit(storvsc_exit); +module_exit(storvsc_drv_exit); |