net: ti: cpsw: Move cpsw_phy_sel() to _probe()
authorFaiz Abbas <faiz_abbas@ti.com>
Mon, 18 Mar 2019 08:24:32 +0000 (13:54 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 12 Apr 2019 12:05:52 +0000 (08:05 -0400)
commite50f878c98ddec1f8247b835335d7ea1ab8e7b3f
tree7e4fde03eec8aa8d96bc52b00c28a71e9b61a7f2
parent3c6add986f1cfca8651e5bfd5a8dbefa6d89ecc9
net: ti: cpsw: Move cpsw_phy_sel() to _probe()

cpsw_phy_sel() is a configuration step that should not be in
ofdata_to_platdata(). Add phy_sel_compat to the cpsw_platform_data
structure so that it is accessible in _probe. Then move the call of
cpsw_phy_sel() to _probe.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
drivers/net/ti/cpsw.c
include/cpsw.h