Commit 8e4763f6 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging/sep: use module_pci_driver macro

this driver duplicates the module_pci_driver code, so remove the
duplicated code and use module_pci_driver and also remove the
obvious comments about _init and _exit.
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fd67859d
......@@ -4492,30 +4492,5 @@ static struct pci_driver sep_pci_driver = {
.remove = sep_remove
};
/**
* sep_init - init function
*
* Module load time. Register the PCI device driver.
*/
static int __init sep_init(void)
{
return pci_register_driver(&sep_pci_driver);
}
/**
* sep_exit - called to unload driver
*
* Unregister the driver The device will perform all the cleanup required.
*/
static void __exit sep_exit(void)
{
pci_unregister_driver(&sep_pci_driver);
}
module_init(sep_init);
module_exit(sep_exit);
module_pci_driver(sep_pci_driver);
MODULE_LICENSE("GPL");
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