[PATCH] xen: Use module_pci_driver() in platform pci driver.
From: Rajat Jain
Date: Wed Jul 08 2015 - 01:55:18 EST
Eliminate the module_init function by using module_pci_driver()
Signed-off-by: Rajat Jain <rajatja@xxxxxxxxxx>
Signed-off-by: Rajat Jain <rajatxjain@xxxxxxxxx>
---
drivers/xen/platform-pci.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/xen/platform-pci.c b/drivers/xen/platform-pci.c
index 3454973..3fb4d41 100644
--- a/drivers/xen/platform-pci.c
+++ b/drivers/xen/platform-pci.c
@@ -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);
--
2.4.3.573.g4eafbef
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/