From e50f878c98ddec1f8247b835335d7ea1ab8e7b3f Mon Sep 17 00:00:00 2001 From: Faiz Abbas Date: Mon, 18 Mar 2019 13:54:32 +0530 Subject: 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 --- include/cpsw.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); -- cgit v1.2.3