aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingoo Han2013-03-04 16:42:03 +0000
committerDavid S. Miller2013-03-05 23:39:13 -0500
commitecad0a684c30c8f28c332c12f0746a22189be4f0 (patch)
tree45aa2f07acb0be15340b6fad30ba3b1a4082ef4e
parent9f225788cc047fb7c2ef2326eb4f86dee890e2ef (diff)
net: at91_ether: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/cadence/at91_ether.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/cadence/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c
index 3becdb2deb46..1a57e16ada7c 100644
--- a/drivers/net/ethernet/cadence/at91_ether.c
+++ b/drivers/net/ethernet/cadence/at91_ether.c
@@ -519,18 +519,7 @@ static struct platform_driver at91ether_driver = {
},
};
-static int __init at91ether_init(void)
-{
- return platform_driver_probe(&at91ether_driver, at91ether_probe);
-}
-
-static void __exit at91ether_exit(void)
-{
- platform_driver_unregister(&at91ether_driver);
-}
-
-module_init(at91ether_init)
-module_exit(at91ether_exit)
+module_platform_driver_probe(at91ether_driver, at91ether_probe);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("AT91RM9200 EMAC Ethernet driver");