aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFaiz Abbas2019-03-18 13:54:32 +0530
committerTom Rini2019-04-12 08:05:52 -0400
commite50f878c98ddec1f8247b835335d7ea1ab8e7b3f (patch)
tree7e4fde03eec8aa8d96bc52b00c28a71e9b61a7f2 /include
parent3c6add986f1cfca8651e5bfd5a8dbefa6d89ecc9 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/cpsw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cpsw.h b/include/cpsw.h
index 9f8ce8850f5..55db277e73d 100644
--- a/include/cpsw.h
+++ b/include/cpsw.h
@@ -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);