Commit ecad0a68 authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9f225788
...@@ -519,18 +519,7 @@ static struct platform_driver at91ether_driver = { ...@@ -519,18 +519,7 @@ static struct platform_driver at91ether_driver = {
}, },
}; };
static int __init at91ether_init(void) module_platform_driver_probe(at91ether_driver, at91ether_probe);
{
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_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("AT91RM9200 EMAC Ethernet driver"); MODULE_DESCRIPTION("AT91RM9200 EMAC Ethernet driver");
......
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