From: Michal Simek Date: Tue, 25 Feb 2014 09:25:38 +0000 (+0100) Subject: net: zynq: Use predefined macros instead of hardcoded value X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=c1a9fa4ba67971f45ee106250340963cef7d020a;p=u-boot.git net: zynq: Use predefined macros instead of hardcoded value MII is used by this driver. Signed-off-by: Michal Simek --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 101489c994..08056a4bac 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -338,7 +338,8 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis) phy_detection(dev); /* interface - look at tsec */ - phydev = phy_connect(priv->bus, priv->phyaddr, dev, 0); + phydev = phy_connect(priv->bus, priv->phyaddr, dev, + PHY_INTERFACE_MODE_MII); phydev->supported = supported | ADVERTISED_Pause | ADVERTISED_Asym_Pause;