diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-17 21:50:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-18 13:02:36 -0400 |
commit | e827c122992127de6bc8de34d5d113fe34c382fb (patch) | |
tree | bf357d8fe615336033dd598a38b733413988dfd0 /drivers/net/ethernet/cirrus/ep93xx_eth.c | |
parent | a8f9c3e4c9826fb277453ed02d059591d6b6ebae (diff) |
net: ep93xx_eth: 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>
Diffstat (limited to 'drivers/net/ethernet/cirrus/ep93xx_eth.c')
-rw-r--r-- | drivers/net/ethernet/cirrus/ep93xx_eth.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/cirrus/ep93xx_eth.c b/drivers/net/ethernet/cirrus/ep93xx_eth.c index 354cbb78ed50..67b0388b6e68 100644 --- a/drivers/net/ethernet/cirrus/ep93xx_eth.c +++ b/drivers/net/ethernet/cirrus/ep93xx_eth.c | |||
@@ -887,18 +887,7 @@ static struct platform_driver ep93xx_eth_driver = { | |||
887 | }, | 887 | }, |
888 | }; | 888 | }; |
889 | 889 | ||
890 | static int __init ep93xx_eth_init_module(void) | 890 | module_platform_driver(ep93xx_eth_driver); |
891 | { | ||
892 | printk(KERN_INFO DRV_MODULE_NAME " version " DRV_MODULE_VERSION " loading\n"); | ||
893 | return platform_driver_register(&ep93xx_eth_driver); | ||
894 | } | ||
895 | |||
896 | static void __exit ep93xx_eth_cleanup_module(void) | ||
897 | { | ||
898 | platform_driver_unregister(&ep93xx_eth_driver); | ||
899 | } | ||
900 | 891 | ||
901 | module_init(ep93xx_eth_init_module); | ||
902 | module_exit(ep93xx_eth_cleanup_module); | ||
903 | MODULE_LICENSE("GPL"); | 892 | MODULE_LICENSE("GPL"); |
904 | MODULE_ALIAS("platform:ep93xx-eth"); | 893 | MODULE_ALIAS("platform:ep93xx-eth"); |