You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Drivers: hv: Make the vmbus driver unloadable
It turns out that the vmbus driver can be made unloadable. Make it unloadable. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8b8ee67531
commit
93e5bd06a9
@@ -795,8 +795,19 @@ cleanup:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void __exit vmbus_exit(void)
|
||||
{
|
||||
|
||||
free_irq(irq, hv_acpi_dev);
|
||||
vmbus_free_channels();
|
||||
bus_unregister(&hv_bus);
|
||||
hv_cleanup();
|
||||
acpi_bus_unregister_driver(&vmbus_acpi_driver);
|
||||
}
|
||||
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(HV_DRV_VERSION);
|
||||
|
||||
subsys_initcall(hv_acpi_init);
|
||||
module_exit(vmbus_exit);
|
||||
|
||||
Reference in New Issue
Block a user