Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / cirrus / ep93xx_eth.c
index 354cbb78ed507876c3f7c54f735e2791a4a6d32a..67b0388b6e68223d2281bacb8f69aa330f2193fa 100644 (file)
@@ -887,18 +887,7 @@ static struct platform_driver ep93xx_eth_driver = {
        },
 };
 
-static int __init ep93xx_eth_init_module(void)
-{
-       printk(KERN_INFO DRV_MODULE_NAME " version " DRV_MODULE_VERSION " loading\n");
-       return platform_driver_register(&ep93xx_eth_driver);
-}
-
-static void __exit ep93xx_eth_cleanup_module(void)
-{
-       platform_driver_unregister(&ep93xx_eth_driver);
-}
+module_platform_driver(ep93xx_eth_driver);
 
-module_init(ep93xx_eth_init_module);
-module_exit(ep93xx_eth_cleanup_module);
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("platform:ep93xx-eth");