]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PCI: hv: remove unnecessary module_init/exit functions
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 31 Jan 2026 02:00:17 +0000 (18:00 -0800)
committerWei Liu <wei.liu@kernel.org>
Wed, 4 Feb 2026 06:20:51 +0000 (06:20 +0000)
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 <enelsonmoore@gmail.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/pci/controller/pci-hyperv-intf.c

index 28b3e93d31c0f509a478396f7b1c267c0b8db78e..18acbda867f051f861e78378e5a0938b8929a087 100644 (file)
@@ -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");