Commit 14861e9d authored by Pavel Belous's avatar Pavel Belous Committed by David S. Miller

net: ethernet: aquantia: Using module_pci_driver.

Remove boilerplate code by using macro module_pci_driver.
Signed-off-by: default avatarPavel Belous <pavel.belous@aquantia.com>
Reviewed-by: default avatarLino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5513e164
...@@ -242,22 +242,4 @@ static struct pci_driver aq_pci_ops = { ...@@ -242,22 +242,4 @@ static struct pci_driver aq_pci_ops = {
.resume = aq_pci_resume, .resume = aq_pci_resume,
}; };
static int __init aq_module_init(void) module_pci_driver(aq_pci_ops);
{
int err = 0;
err = pci_register_driver(&aq_pci_ops);
if (err < 0)
goto err_exit;
err_exit:
return err;
}
static void __exit aq_module_exit(void)
{
pci_unregister_driver(&aq_pci_ops);
}
module_init(aq_module_init);
module_exit(aq_module_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