Skip to content

Commit

Permalink
net: s6gmac: Use module_platform_driver()
Browse files Browse the repository at this point in the history
module_platform_driver macro removes some boilerplate and
simplifies the code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sachin Kamat authored and David S. Miller committed Mar 20, 2013
1 parent 18e4a73 commit 6d74968
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/net/ethernet/s6gmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,20 +1053,7 @@ static struct platform_driver s6gmac_driver = {
},
};

static int __init s6gmac_init(void)
{
printk(KERN_INFO DRV_PRMT "S6 GMAC ethernet driver\n");
return platform_driver_register(&s6gmac_driver);
}


static void __exit s6gmac_exit(void)
{
platform_driver_unregister(&s6gmac_driver);
}

module_init(s6gmac_init);
module_exit(s6gmac_exit);
module_platform_driver(s6gmac_driver);

MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("S6105 on chip Ethernet driver");
Expand Down

0 comments on commit 6d74968

Please sign in to comment.