net: cpsw: Pass correct slave
Pass the current slave to cpsw_slave_init/cpsw_update_link, not the first one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
0cf4630cd2
commit
1655068ddd
|
@ -801,8 +801,8 @@ static int cpsw_open(struct eth_device *edev)
|
|||
ALE_SECURE);
|
||||
cpsw_ale_add_mcast(priv, ethbdaddr, 1 << priv->host_port);
|
||||
|
||||
cpsw_slave_init(&priv->slaves[0], priv);
|
||||
cpsw_update_link(&priv->slaves[0], priv);
|
||||
cpsw_slave_init(slave, priv);
|
||||
cpsw_update_link(slave, priv);
|
||||
|
||||
/* init descriptor pool */
|
||||
for (i = 0; i < NUM_DESCS; i++) {
|
||||
|
|
Loading…
Reference in New Issue