From: Ethan Nelson-Moore Date: Sat, 31 Jan 2026 02:00:17 +0000 (-0800) Subject: PCI: hv: remove unnecessary module_init/exit functions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f039fe7a775007d7602c34d51b570f4a382bd7;p=thirdparty%2Flinux.git PCI: hv: remove unnecessary module_init/exit functions The pci-hyperv-intf driver has unnecessary empty module_init and module_exit functions. Remove them. Note that if a module_init function exists, a module_exit function must also exist; otherwise, the module cannot be unloaded. Signed-off-by: Ethan Nelson-Moore Signed-off-by: Wei Liu --- diff --git a/drivers/pci/controller/pci-hyperv-intf.c b/drivers/pci/controller/pci-hyperv-intf.c index 28b3e93d31c0..18acbda867f0 100644 --- a/drivers/pci/controller/pci-hyperv-intf.c +++ b/drivers/pci/controller/pci-hyperv-intf.c @@ -52,17 +52,5 @@ int hyperv_reg_block_invalidate(struct pci_dev *dev, void *context, } EXPORT_SYMBOL_GPL(hyperv_reg_block_invalidate); -static void __exit exit_hv_pci_intf(void) -{ -} - -static int __init init_hv_pci_intf(void) -{ - return 0; -} - -module_init(init_hv_pci_intf); -module_exit(exit_hv_pci_intf); - MODULE_DESCRIPTION("Hyper-V PCI Interface"); MODULE_LICENSE("GPL v2");