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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Peter Huewe 2013-05-20 22:47:41 +02:00 • committed by Greg Kroah-Hartman
commit aa8c06f7c9

View 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);