diff options
| author | Axel Lin <axel.lin@gmail.com> | 2012-04-13 14:40:17 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-04-14 15:20:04 -0400 |
| commit | a680b30a53668e299d487117ded7b76a069abc77 (patch) | |
| tree | 3451e8d16542b4b2a8e9537ccf60ddeb01e08b6d /drivers/net/tokenring/tmspci.c | |
| parent | 7f83560df2b51d41fbc77c7b204b3f5c2ad6765a (diff) | |
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/tmspci.c')
| -rw-r--r-- | drivers/net/tokenring/tmspci.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/tokenring/tmspci.c b/drivers/net/tokenring/tmspci.c index fb9918da5792..90f3fa44a151 100644 --- a/drivers/net/tokenring/tmspci.c +++ b/drivers/net/tokenring/tmspci.c | |||
| @@ -233,16 +233,4 @@ static struct pci_driver tms_pci_driver = { | |||
| 233 | .remove = __devexit_p(tms_pci_detach), | 233 | .remove = __devexit_p(tms_pci_detach), |
| 234 | }; | 234 | }; |
| 235 | 235 | ||
| 236 | static int __init tms_pci_init (void) | 236 | module_pci_driver(tms_pci_driver); |
| 237 | { | ||
| 238 | return pci_register_driver(&tms_pci_driver); | ||
| 239 | } | ||
| 240 | |||
| 241 | static void __exit tms_pci_rmmod (void) | ||
| 242 | { | ||
| 243 | pci_unregister_driver (&tms_pci_driver); | ||
| 244 | } | ||
| 245 | |||
| 246 | module_init(tms_pci_init); | ||
| 247 | module_exit(tms_pci_rmmod); | ||
| 248 | |||
