diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-20 01:41:28 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 17:25:36 (GMT) |
commit | 18e4a7374c3307c76e4675ff9382a0ce58be0b25 (patch) | |
tree | dbef938bc7822ccae91ff22c786a46b38513181d /drivers | |
parent | 2b5faa4c553f90ee2dde1d976b220b1ca9741ef0 (diff) | |
download | linux-18e4a7374c3307c76e4675ff9382a0ce58be0b25.tar.xz |
net: ks8695net: Use module_platform_driver()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8695net.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c index 07a6ebc..b6c60fd 100644 --- a/drivers/net/ethernet/micrel/ks8695net.c +++ b/drivers/net/ethernet/micrel/ks8695net.c @@ -1622,25 +1622,7 @@ static struct platform_driver ks8695_driver = { .resume = ks8695_drv_resume, }; -/* Module interface */ - -static int __init -ks8695_init(void) -{ - printk(KERN_INFO "%s Ethernet driver, V%s\n", - MODULENAME, MODULEVERSION); - - return platform_driver_register(&ks8695_driver); -} - -static void __exit -ks8695_cleanup(void) -{ - platform_driver_unregister(&ks8695_driver); -} - -module_init(ks8695_init); -module_exit(ks8695_cleanup); +module_platform_driver(ks8695_driver); MODULE_AUTHOR("Simtec Electronics"); MODULE_DESCRIPTION("Micrel KS8695 (Centaur) Ethernet driver"); |