|
@@ -2583,17 +2583,7 @@ static struct platform_driver cpsw_driver = {
|
|
|
.remove = cpsw_remove,
|
|
.remove = cpsw_remove,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-static int __init cpsw_init(void)
|
|
|
|
|
-{
|
|
|
|
|
- return platform_driver_register(&cpsw_driver);
|
|
|
|
|
-}
|
|
|
|
|
-late_initcall(cpsw_init);
|
|
|
|
|
-
|
|
|
|
|
-static void __exit cpsw_exit(void)
|
|
|
|
|
-{
|
|
|
|
|
- platform_driver_unregister(&cpsw_driver);
|
|
|
|
|
-}
|
|
|
|
|
-module_exit(cpsw_exit);
|
|
|
|
|
|
|
+module_platform_driver(cpsw_driver);
|
|
|
|
|
|
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_LICENSE("GPL");
|
|
|
MODULE_AUTHOR("Cyril Chemparathy <cyril@ti.com>");
|
|
MODULE_AUTHOR("Cyril Chemparathy <cyril@ti.com>");
|