uio/uio_aec: Use module_pci_driver to register driver
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 20 May 2013 20:47:41 +0000 (22:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 17:10:41 +0000 (10:10 -0700)
Removing some boilerplate by using module_pci_driver instead of calling
register and unregister in the otherwise empty init/exit functions.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_aec.c

index 1548982db58ba4b802945b09ced045ff4b1e039f..f3611c2d83b681e1903d9bc502347108f50263bc 100644 (file)
@@ -160,17 +160,5 @@ static struct pci_driver pci_driver = {
        .remove = remove,
 };
 
-static int __init aectc_init(void)
-{
-       return pci_register_driver(&pci_driver);
-}
-
-static void __exit aectc_exit(void)
-{
-       pci_unregister_driver(&pci_driver);
-}
-
+module_pci_driver(pci_driver);
 MODULE_LICENSE("GPL");
-
-module_init(aectc_init);
-module_exit(aectc_exit);