net: cpsw: Fix gmii_sel config
Prober slave_num is needed by cpsw_gmii_sel_am335x to calc reg value. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
72930d623c
commit
09783b9c45
|
@ -1074,6 +1074,7 @@ static int cpsw_probe_dt(struct cpsw_priv *priv)
|
|||
|
||||
slave->phy_id = phy_id[1];
|
||||
slave->phy_if = of_get_phy_mode(child);
|
||||
slave->slave_num = i;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue