summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/dlink
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-10-26 09:29:00 +0000
committerDavid S. Miller <davem@davemloft.net>2012-10-31 13:56:39 -0400
commit9add4d8174907c9977ad29cf6e71460829ec954e (patch)
tree7c2d52ea52b91b8e1ddec3b294b97e510419e357 /drivers/net/ethernet/dlink
parent3eeb7da909d93cc290a6a7f07cff53c896618e9d (diff)
dlink: dl2k: use the module_pci_driver macro
use the module_pci_driver macro to make the code simpler by eliminating module_init and module_exit calls. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/dlink')
-rw-r--r--drivers/net/ethernet/dlink/dl2k.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c
index a059f0c27e28..2fb01bf18155 100644
--- a/drivers/net/ethernet/dlink/dl2k.c
+++ b/drivers/net/ethernet/dlink/dl2k.c
@@ -1758,21 +1758,7 @@ static struct pci_driver rio_driver = {
.remove = __devexit_p(rio_remove1),
};
-static int __init
-rio_init (void)
-{
- return pci_register_driver(&rio_driver);
-}
-
-static void __exit
-rio_exit (void)
-{
- pci_unregister_driver (&rio_driver);
-}
-
-module_init (rio_init);
-module_exit (rio_exit);
-
+module_pci_driver(rio_driver);
/*
Compile command: