All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: Use module_pci_driver() in platform pci driver.
@ 2015-07-08  5:54 Rajat Jain
  2015-07-08 11:07 ` David Vrabel
  2015-07-08 11:07 ` [Xen-devel] " David Vrabel
  0 siblings, 2 replies; 3+ messages in thread
From: Rajat Jain @ 2015-07-08  5:54 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk, Boris Ostrovsky, David Vrabel, xen-devel
  Cc: linux-kernel, Rajat Jain, Rajat Jain

Eliminate the module_init function by using module_pci_driver()

Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Rajat Jain <rajatxjain@gmail.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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-08 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-08  5:54 [PATCH] xen: Use module_pci_driver() in platform pci driver Rajat Jain
2015-07-08 11:07 ` David Vrabel
2015-07-08 11:07 ` [Xen-devel] " David Vrabel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.