1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Faiz Abbas
2019-03-18 13:54:32 +05:30
committed by Tom Rini
parent 3c6add986f
commit e50f878c98
2 changed files with 17 additions and 17 deletions

View File

@@ -50,6 +50,7 @@ struct cpsw_platform_data {
u32 active_slave;
bool rmii_clock_external;
u8 version;
const char *phy_sel_compat;
};
int cpsw_register(struct cpsw_platform_data *data);