Commit aaca2377 authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller

net: fec: use module_platform_driver

Using module_platform_driver can make the code smaller.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cf66f9d4
...@@ -1739,21 +1739,6 @@ static struct platform_driver fec_driver = { ...@@ -1739,21 +1739,6 @@ static struct platform_driver fec_driver = {
.remove = __devexit_p(fec_drv_remove), .remove = __devexit_p(fec_drv_remove),
}; };
static int __init module_platform_driver(fec_driver);
fec_enet_module_init(void)
{
printk(KERN_INFO "FEC Ethernet Driver\n");
return platform_driver_register(&fec_driver);
}
static void __exit
fec_enet_cleanup(void)
{
platform_driver_unregister(&fec_driver);
}
module_exit(fec_enet_cleanup);
module_init(fec_enet_module_init);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
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