diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 16:42:03 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-05 23:39:13 -0500 |
commit | ecad0a684c30c8f28c332c12f0746a22189be4f0 (patch) | |
tree | 45aa2f07acb0be15340b6fad30ba3b1a4082ef4e /drivers/net/ethernet/cadence/at91_ether.c | |
parent | 9f225788cc047fb7c2ef2326eb4f86dee890e2ef (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>
Diffstat (limited to 'drivers/net/ethernet/cadence/at91_ether.c')
-rw-r--r-- | drivers/net/ethernet/cadence/at91_ether.c | 13 |
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 3becdb2deb4..1a57e16ada7 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"); |