From: Siva Durga Prasad Paladugu Date: Sun, 21 Feb 2016 10:16:14 +0000 (+0530) Subject: net: xilinx_axi: use interface type instead of zero X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ac8a757c53651a301ce270cee59bc863ce7f7d6;p=thirdparty%2Fu-boot.git net: xilinx_axi: use interface type instead of zero Pass appropriate interface type to phy_connect instead of zero. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index 5620ad9dc75..74f9a693ef8 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -251,7 +251,7 @@ static int axiemac_phy_init(struct udevice *dev) } /* Interface - look at tsec */ - phydev = phy_connect(priv->bus, priv->phyaddr, dev, 0); + phydev = phy_connect(priv->bus, priv->phyaddr, dev, priv->interface); phydev->supported &= supported; phydev->advertising = phydev->supported;