[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1436334887-27632-1-git-send-email-rajatja@google.com>
Date: Tue, 7 Jul 2015 22:54:47 -0700
From: Rajat Jain <rajatja@...gle.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
David Vrabel <david.vrabel@...rix.com>,
xen-devel@...ts.xenproject.org
Cc: linux-kernel@...r.kernel.org, Rajat Jain <rajatja@...gle.com>,
Rajat Jain <rajatxjain@...il.com>
Subject: [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@...gle.com>
Signed-off-by: Rajat Jain <rajatxjain@...il.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists