summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/dscc4.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-13 18:41:21 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-14 15:20:04 -0400
commiteff98db027c50f1e4ad14f1d9069d55e5f7e4319 (patch)
tree6688b906abe22d29ff83ac0ac89150fcc80d0abe /drivers/net/wan/dscc4.c
parenta680b30a53668e299d487117ded7b76a069abc77 (diff)
downloadop-kernel-dev-eff98db027c50f1e4ad14f1d9069d55e5f7e4319.zip
op-kernel-dev-eff98db027c50f1e4ad14f1d9069d55e5f7e4319.tar.gz
net/wan: use module_pci_driver
This patch converts the drivers in drivers/net/wan/* 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: Francois Romieu <romieu@fr.zoreil.com> Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/dscc4.c')
-rw-r--r--drivers/net/wan/dscc4.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c
index c676de7..9eb6479 100644
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -2055,15 +2055,4 @@ static struct pci_driver dscc4_driver = {
.remove = __devexit_p(dscc4_remove_one),
};
-static int __init dscc4_init_module(void)
-{
- return pci_register_driver(&dscc4_driver);
-}
-
-static void __exit dscc4_cleanup_module(void)
-{
- pci_unregister_driver(&dscc4_driver);
-}
-
-module_init(dscc4_init_module);
-module_exit(dscc4_cleanup_module);
+module_pci_driver(dscc4_driver);
OpenPOWER on IntegriCloud