Skip to content

Commit

Permalink
dlink: dl2k: use the module_pci_driver macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and David S. Miller committed Oct 31, 2012
1 parent 3eeb7da commit 9add4d8
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions drivers/net/ethernet/dlink/dl2k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9add4d8

Please sign in to comment.