Skip to content

Commit

Permalink
rt2x00: rt2800pci: use 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: Gabor Juhos <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
juhosg authored and linvjw committed Oct 18, 2013
1 parent fe7ef7c commit a1b13b9
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/net/wireless/rt2x00/rt2800pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,16 +470,4 @@ static struct pci_driver rt2800pci_driver = {
.resume = rt2x00pci_resume,
};


static int __init rt2800pci_init(void)
{
return pci_register_driver(&rt2800pci_driver);
}

static void __exit rt2800pci_exit(void)
{
pci_unregister_driver(&rt2800pci_driver);
}

module_init(rt2800pci_init);
module_exit(rt2800pci_exit);
module_pci_driver(rt2800pci_driver);

0 comments on commit a1b13b9

Please sign in to comment.