Commit eff98db0 authored by Axel Lin's avatar Axel Lin Committed by David S. Miller

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: default avatarAxel Lin <axel.lin@gmail.com>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a680b30a
...@@ -2055,15 +2055,4 @@ static struct pci_driver dscc4_driver = { ...@@ -2055,15 +2055,4 @@ static struct pci_driver dscc4_driver = {
.remove = __devexit_p(dscc4_remove_one), .remove = __devexit_p(dscc4_remove_one),
}; };
static int __init dscc4_init_module(void) module_pci_driver(dscc4_driver);
{
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);
...@@ -1736,18 +1736,7 @@ static struct pci_driver lmc_driver = { ...@@ -1736,18 +1736,7 @@ static struct pci_driver lmc_driver = {
.remove = __devexit_p(lmc_remove_one), .remove = __devexit_p(lmc_remove_one),
}; };
static int __init init_lmc(void) module_pci_driver(lmc_driver);
{
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);
unsigned lmc_mii_readreg (lmc_softc_t * const sc, unsigned devaddr, unsigned regno) /*fold00*/ unsigned lmc_mii_readreg (lmc_softc_t * const sc, unsigned devaddr, unsigned regno) /*fold00*/
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment