2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-18 02:04:05 +08:00

net: ethernet: slicoss: use module_pci_driver()

Use module_pci_driver() to get rid of some boilerplate code.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Tobias Klauser 2016-12-07 14:43:30 +01:00 committed by David S. Miller
parent 334c5e2ba7
commit 3f0dd6b79c

View File

@ -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>");