Skip to contentSkip to conversation

xen: Use module_pci_driver() in platform pci driver.

PATCH In review Rajat Jain 2 participants 3 messages Jul 8, 2015 Xen hypervisor interface

lore
Share & tools
lore

Rajat Jain

author
#0 lore raw

PATCH 1/1 xen: Use module_pci_driver() in platform pci driver.

Eliminate the module_init function by using module_pci_driver()

---
 drivers/xen/platform-pci.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/xen/platform-pci.c +1 -6
index 3454973..3fb4d41 100644
@@ -192,9 +192,4 @@ static struct pci_driver platform_driver = {
 #endif
 };
 
-static int __init platform_pci_module_init(void)
-{
-	return pci_register_driver(&platform_driver);
-}
-
-module_init(platform_pci_module_init);
+module_pci_driver(platform_driver);
Signature · 1 line
2.4.3.573.g4eafbef
#1 lore raw
Quoted 1 line · Rajat Jain

Eliminate the module_init function by using module_pci_driver()

This is not equivalent since this adds a useless module_exit() function.

David

#2 lore raw
In reply to Rajat Jain
Quoted 1 line · Rajat Jain

Eliminate the module_init function by using module_pci_driver()

This is not equivalent since this adds a useless module_exit() function.

David