Commit 3f0dd6b7 authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller

net: ethernet: slicoss: use module_pci_driver()

Use module_pci_driver() to get rid of some boilerplate code.
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Acked-by: default avatarLino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 334c5e2b
......@@ -1863,18 +1863,7 @@ static struct pci_driver slic_driver = {
.remove = slic_remove,
};
static int __init slic_init_module(void)
{
return pci_register_driver(&slic_driver);
}
static void __exit slic_cleanup_module(void)
{
pci_unregister_driver(&slic_driver);
}
module_init(slic_init_module);
module_exit(slic_cleanup_module);
module_pci_driver(slic_driver);
MODULE_DESCRIPTION("Alacritech non-accelerated SLIC driver");
MODULE_AUTHOR("Lino Sanfilippo <LinoSanfilippo@gmx.de>");
......
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