[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen: Use module_pci_driver() in platform pci driver.



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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.