diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-05-20 22:47:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 10:10:41 -0700 |
commit | aa8c06f7c9471f5722faa14ec8b887989de1226d (patch) | |
tree | f0dafaba2152131ceb9f6938d54c82d8ebf5b1a0 /drivers/uio | |
parent | 9db5c9088f741a7e83310a6a459793c25079c636 (diff) | |
download | op-kernel-dev-aa8c06f7c9471f5722faa14ec8b887989de1226d.zip op-kernel-dev-aa8c06f7c9471f5722faa14ec8b887989de1226d.tar.gz |
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/uio')
-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 1548982..f3611c2 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); |