Commit a46e6ccd authored by Peter Hüwe's avatar Peter Hüwe Committed by David S. Miller

net/ethernet/amd/amd8111e: 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 avatarDavid S. Miller <davem@davemloft.net>
parent 5119ad0b
...@@ -1981,15 +1981,4 @@ static struct pci_driver amd8111e_driver = { ...@@ -1981,15 +1981,4 @@ static struct pci_driver amd8111e_driver = {
.resume = amd8111e_resume .resume = amd8111e_resume
}; };
static int __init amd8111e_init(void) module_pci_driver(amd8111e_driver);
{
return pci_register_driver(&amd8111e_driver);
}
static void __exit amd8111e_cleanup(void)
{
pci_unregister_driver(&amd8111e_driver);
}
module_init(amd8111e_init);
module_exit(amd8111e_cleanup);
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