diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-05-21 00:47:41 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 21:10:41 +0400 |
commit | aa8c06f7c9471f5722faa14ec8b887989de1226d (patch) | |
tree | f0dafaba2152131ceb9f6938d54c82d8ebf5b1a0 /drivers | |
parent | 9db5c9088f741a7e83310a6a459793c25079c636 (diff) | |
download | linux-aa8c06f7c9471f5722faa14ec8b887989de1226d.tar.xz |
uio/uio_aec: Use module_pci_driver to register driver
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/uio/uio_aec.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/uio/uio_aec.c b/drivers/uio/uio_aec.c index 1548982db58b..f3611c2d83b6 100644 --- a/drivers/uio/uio_aec.c +++ b/drivers/uio/uio_aec.c @@ -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); |