Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18e4a737 authored by Sachin Kamat's avatar Sachin Kamat Committed by David S. Miller
Browse files

net: ks8695net: Use module_platform_driver()



module_platform_driver macro removes some boilerplate and
simplifies the code.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b5faa4c
Loading
Loading
Loading
Loading
+1 −19
Original line number Original line Diff line number Diff line
@@ -1622,25 +1622,7 @@ static struct platform_driver ks8695_driver = {
	.resume		= ks8695_drv_resume,
	.resume		= ks8695_drv_resume,
};
};


/* Module interface */
module_platform_driver(ks8695_driver);

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_AUTHOR("Simtec Electronics");
MODULE_AUTHOR("Simtec Electronics");
MODULE_DESCRIPTION("Micrel KS8695 (Centaur) Ethernet driver");
MODULE_DESCRIPTION("Micrel KS8695 (Centaur) Ethernet driver");