diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-12-07 14:43:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-08 13:00:02 -0500 |
commit | 3f0dd6b79c014231e671f754a499aa017c2b955c (patch) | |
tree | dd998cdae51d1690a175cf717ceb855b92dccaf1 /drivers/net/ethernet/alacritech | |
parent | 334c5e2ba718c9c2f74d56316624f048169ebfd6 (diff) | |
download | linux-3f0dd6b79c014231e671f754a499aa017c2b955c.tar.gz linux-3f0dd6b79c014231e671f754a499aa017c2b955c.tar.bz2 linux-3f0dd6b79c014231e671f754a499aa017c2b955c.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/alacritech')
-rw-r--r-- | drivers/net/ethernet/alacritech/slicoss.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/alacritech/slicoss.c b/drivers/net/ethernet/alacritech/slicoss.c index e77ecd5b307c..b9fbd0107008 100644 --- a/drivers/net/ethernet/alacritech/slicoss.c +++ b/drivers/net/ethernet/alacritech/slicoss.c @@ -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>"); |