summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/dec
diff options
context:
space:
mode:
authorPeter Hüwe <PeterHuewe@gmx.de>2013-05-21 16:42:11 +0400
committerDavid S. Miller <davem@davemloft.net>2013-05-23 01:35:03 +0400
commit31d60ebfbe6792068e8951741f92f40bdea97837 (patch)
tree3f2e8ab2f232370c2b6b3bfd46844726a6f38bdb /drivers/net/ethernet/dec
parent52a58f9df12ab03bda432b398a4bdfcc9ed2b414 (diff)
downloadlinux-31d60ebfbe6792068e8951741f92f40bdea97837.tar.xz
net/ethernet/dec/tulip/xircom_cb: Use module_pci_driver to register driver
Removing some boilerplate by using module_pci_driver instead of calling register and unregister in the otherwise empty init/exit functions. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Reviewed-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/dec')
-rw-r--r--drivers/net/ethernet/dec/tulip/xircom_cb.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/ethernet/dec/tulip/xircom_cb.c b/drivers/net/ethernet/dec/tulip/xircom_cb.c
index cdbcd1643141..9b84cb04fe5f 100644
--- a/drivers/net/ethernet/dec/tulip/xircom_cb.c
+++ b/drivers/net/ethernet/dec/tulip/xircom_cb.c
@@ -1171,16 +1171,4 @@ investigate_write_descriptor(struct net_device *dev,
}
}
-static int __init xircom_init(void)
-{
- return pci_register_driver(&xircom_ops);
-}
-
-static void __exit xircom_exit(void)
-{
- pci_unregister_driver(&xircom_ops);
-}
-
-module_init(xircom_init)
-module_exit(xircom_exit)
-
+module_pci_driver(xircom_ops);