diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-17 21:50:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-18 13:02:36 -0400 |
commit | a8f9c3e4c9826fb277453ed02d059591d6b6ebae (patch) | |
tree | 6f4db72be36d2cde1f3e4400430bd0a3f3ce87ec | |
parent | 9a18dd15e2ec934d8265009d3882955dcc059a49 (diff) |
net: dm9000: Use module_platform_driver()
module_platform_driver macro removes some boilerplate and makes
the code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/davicom/dm9000.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c index 8cdf02503d13..f38f677f8420 100644 --- a/drivers/net/ethernet/davicom/dm9000.c +++ b/drivers/net/ethernet/davicom/dm9000.c | |||
@@ -1687,22 +1687,7 @@ static struct platform_driver dm9000_driver = { | |||
1687 | .remove = dm9000_drv_remove, | 1687 | .remove = dm9000_drv_remove, |
1688 | }; | 1688 | }; |
1689 | 1689 | ||
1690 | static int __init | 1690 | module_platform_driver(dm9000_driver); |
1691 | dm9000_init(void) | ||
1692 | { | ||
1693 | printk(KERN_INFO "%s Ethernet Driver, V%s\n", CARDNAME, DRV_VERSION); | ||
1694 | |||
1695 | return platform_driver_register(&dm9000_driver); | ||
1696 | } | ||
1697 | |||
1698 | static void __exit | ||
1699 | dm9000_cleanup(void) | ||
1700 | { | ||
1701 | platform_driver_unregister(&dm9000_driver); | ||
1702 | } | ||
1703 | |||
1704 | module_init(dm9000_init); | ||
1705 | module_exit(dm9000_cleanup); | ||
1706 | 1691 | ||
1707 | MODULE_AUTHOR("Sascha Hauer, Ben Dooks"); | 1692 | MODULE_AUTHOR("Sascha Hauer, Ben Dooks"); |
1708 | MODULE_DESCRIPTION("Davicom DM9000 network driver"); | 1693 | MODULE_DESCRIPTION("Davicom DM9000 network driver"); |