diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-05-20 16:47:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 13:10:41 -0400 |
commit | aa8c06f7c9471f5722faa14ec8b887989de1226d (patch) | |
tree | f0dafaba2152131ceb9f6938d54c82d8ebf5b1a0 | |
parent | 9db5c9088f741a7e83310a6a459793c25079c636 (diff) |
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>
-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 = { | |||
160 | .remove = remove, | 160 | .remove = remove, |
161 | }; | 161 | }; |
162 | 162 | ||
163 | static int __init aectc_init(void) | 163 | module_pci_driver(pci_driver); |
164 | { | ||
165 | return pci_register_driver(&pci_driver); | ||
166 | } | ||
167 | |||
168 | static void __exit aectc_exit(void) | ||
169 | { | ||
170 | pci_unregister_driver(&pci_driver); | ||
171 | } | ||
172 | |||
173 | MODULE_LICENSE("GPL"); | 164 | MODULE_LICENSE("GPL"); |
174 | |||
175 | module_init(aectc_init); | ||
176 | module_exit(aectc_exit); | ||