diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-13 20:40:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-14 21:20:04 +0200 |
commit | a680b30a53668e299d487117ded7b76a069abc77 (patch) | |
tree | 3451e8d16542b4b2a8e9537ccf60ddeb01e08b6d /drivers/net/tokenring/3c359.c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsh... (diff) | |
download | linux-a680b30a53668e299d487117ded7b76a069abc77.tar.xz linux-a680b30a53668e299d487117ded7b76a069abc77.zip |
net/tokenring: use module_pci_driver
This patch converts the drivers in drivers/net/tokenring/* to use
module_pci_driver() macro which makes the code smaller and a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tokenring/3c359.c')
-rw-r--r-- | drivers/net/tokenring/3c359.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c index b15ac81d46fa..0924f572f59b 100644 --- a/drivers/net/tokenring/3c359.c +++ b/drivers/net/tokenring/3c359.c @@ -1826,18 +1826,6 @@ static struct pci_driver xl_3c359_driver = { .remove = __devexit_p(xl_remove_one), }; -static int __init xl_pci_init (void) -{ - return pci_register_driver(&xl_3c359_driver); -} - - -static void __exit xl_pci_cleanup (void) -{ - pci_unregister_driver (&xl_3c359_driver); -} - -module_init(xl_pci_init); -module_exit(xl_pci_cleanup); +module_pci_driver(xl_3c359_driver); MODULE_LICENSE("GPL") ; |