Commit 6fb3b6b5 authored by Grygorii Strashko's avatar Grygorii Strashko Committed by David S. Miller
Browse files

drivers: net: cpsw: use module_platform_driver

There is no reasons to probe cpsw from late_initcall level
and it's not recommended. Hence, use module_platform_driver()
to register and probe cpsw driver from module_init() level.

Cc: Tony Lindgren <>
Acked-by: default avatarMugunthan V N <>
Signed-off-by: default avatarGrygorii Strashko <>
Signed-off-by: default avatarDavid S. Miller <>
parent 5e0724d0
......@@ -2583,17 +2583,7 @@ static struct platform_driver cpsw_driver = {
.remove = cpsw_remove,
static int __init cpsw_init(void)
return platform_driver_register(&cpsw_driver);
static void __exit cpsw_exit(void)
MODULE_AUTHOR("Cyril Chemparathy <>");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment