Commit aa8c06f7 authored by Peter Huewe's avatar Peter Huewe Committed by Greg Kroah-Hartman

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: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9db5c908
...@@ -160,17 +160,5 @@ static struct pci_driver pci_driver = { ...@@ -160,17 +160,5 @@ static struct pci_driver pci_driver = {
.remove = remove, .remove = remove,
}; };
static int __init aectc_init(void) module_pci_driver(pci_driver);
{
return pci_register_driver(&pci_driver);
}
static void __exit aectc_exit(void)
{
pci_unregister_driver(&pci_driver);
}
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
module_init(aectc_init);
module_exit(aectc_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment