]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PCI: shpchp: Remove logging from module init/exit functions
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 16 Dec 2024 16:10:09 +0000 (18:10 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Feb 2025 22:51:44 +0000 (16:51 -0600)
The logging in shpchp module init/exit functions is not very useful.
Remove it.

Link: https://lore.kernel.org/r/20241216161012.1774-2-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/shpchp_core.c

index a92e28b72908258a68b41b5eb34578393555c648..a10ce7be7f5117904b1802a22f84b812e220b3e3 100644 (file)
@@ -324,20 +324,12 @@ static struct pci_driver shpc_driver = {
 
 static int __init shpcd_init(void)
 {
-       int retval;
-
-       retval = pci_register_driver(&shpc_driver);
-       dbg("%s: pci_register_driver = %d\n", __func__, retval);
-       info(DRIVER_DESC " version: " DRIVER_VERSION "\n");
-
-       return retval;
+       return pci_register_driver(&shpc_driver);
 }
 
 static void __exit shpcd_cleanup(void)
 {
-       dbg("unload_shpchpd()\n");
        pci_unregister_driver(&shpc_driver);
-       info(DRIVER_DESC " version: " DRIVER_VERSION " unloaded\n");
 }
 
 module_init(shpcd_init);