mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
net: ethernet: aquantia: Using module_pci_driver.
Remove boilerplate code by using macro module_pci_driver. Signed-off-by: Pavel Belous <pavel.belous@aquantia.com> Reviewed-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5513e16421
commit
14861e9de2
@ -242,22 +242,4 @@ static struct pci_driver aq_pci_ops = {
|
||||
.resume = aq_pci_resume,
|
||||
};
|
||||
|
||||
static int __init aq_module_init(void)
|
||||
{
|
||||
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);
|
||||
module_pci_driver(aq_pci_ops);
|
||||
|
Loading…
Reference in New Issue
Block a user