]> git.sur5r.net Git - u-boot/commitdiff
net: xilinx_axi: Use interface type instead of zero
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Sun, 21 Feb 2016 10:16:14 +0000 (15:46 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 4 Apr 2016 18:10:44 +0000 (20:10 +0200)
Pass appropriate interface type to phy_connect
instead of zero.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/xilinx_axi_emac.c

index 81274ee13bca869567ecc3986f4f90fe8c071f7d..46b8d2d07ee94c00c05109212a903152d1662e90 100644 (file)
@@ -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;