Skip to content

Commit

Permalink
net: fec: use module_platform_driver
Browse files Browse the repository at this point in the history
Using module_platform_driver can make the code smaller.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Fabio Estevam authored and David S. Miller committed Jan 25, 2012
1 parent cf66f9d commit aaca237
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions drivers/net/ethernet/freescale/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1739,21 +1739,6 @@ static struct platform_driver fec_driver = {
.remove = __devexit_p(fec_drv_remove),
};

static int __init
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_platform_driver(fec_driver);

MODULE_LICENSE("GPL");

0 comments on commit aaca237

Please sign in to comment.