Messages in this thread Patch in this message | | | From | Rajat Jain <> | Subject | [PATCH] xen: Use module_pci_driver() in platform pci driver. | Date | Tue, 7 Jul 2015 22:54:47 -0700 |
| |
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
| |