From: Alistair Francis Date: Mon, 29 Feb 2016 22:11:13 +0000 (-0800) Subject: net: xilinx_axi: Declare missing variable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05b03cec68ca7792716a6ae0c9e7e5c9c720f617;p=thirdparty%2Fu-boot.git net: xilinx_axi: Declare missing variable Since commit "net: xilinx_axi: Clear Isolate bit if found set suring phy" (sha1: 39579875c) u-boot fails to build as the ret variable is never declared. This patch declares the variable in the setup_phy() function. Signed-off-by: Alistair Francis Signed-off-by: Michal Simek --- diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index b50237e1f03..ea14cb1d959 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -264,7 +264,7 @@ static int axiemac_phy_init(struct udevice *dev) /* Setting axi emac and phy to proper setting */ static int setup_phy(struct udevice *dev) { - u32 speed, emmc_reg; + u32 speed, emmc_reg, ret; struct axidma_priv *priv = dev_get_priv(dev); struct axi_regs *regs = priv->iobase; struct phy_device *phydev = priv->phydev;