OSDN Git Service

drivers: net: cpsw: use module_platform_driver
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 23 Oct 2015 11:41:12 +0000 (14:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Oct 2015 12:48:09 +0000 (05:48 -0700)
commit6fb3b6b57ae444d7723088656dce86b1be92498d
tree36393d2fccbd42f05ab789ade0b12d25e3e96753
parent5e0724d027f0548511a2165a209572d48fe7a4c8
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 <tony@atomide.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c