summaryrefslogtreecommitdiff
path: root/drivers/net/wan/lmc
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-04-13 22:41:21 +0400
committerDavid S. Miller <davem@davemloft.net>2012-04-14 23:20:04 +0400
commiteff98db027c50f1e4ad14f1d9069d55e5f7e4319 (patch)
tree6688b906abe22d29ff83ac0ac89150fcc80d0abe /drivers/net/wan/lmc
parenta680b30a53668e299d487117ded7b76a069abc77 (diff)
downloadlinux-eff98db027c50f1e4ad14f1d9069d55e5f7e4319.tar.xz
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/lmc')
-rw-r--r--drivers/net/wan/lmc/lmc_main.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/wan/lmc/lmc_main.c b/drivers/net/wan/lmc/lmc_main.c
index 76a8a4a522e9..b8da30ad33ba 100644
--- a/drivers/net/wan/lmc/lmc_main.c
+++ b/drivers/net/wan/lmc/lmc_main.c
@@ -1736,18 +1736,7 @@ static struct pci_driver lmc_driver = {
.remove = __devexit_p(lmc_remove_one),
};
-static int __init init_lmc(void)
-{
- return pci_register_driver(&lmc_driver);
-}
-
-static void __exit exit_lmc(void)
-{
- pci_unregister_driver(&lmc_driver);
-}
-
-module_init(init_lmc);
-module_exit(exit_lmc);
+module_pci_driver(lmc_driver);
unsigned lmc_mii_readreg (lmc_softc_t * const sc, unsigned devaddr, unsigned regno) /*fold00*/
{