From 05b03cec68ca7792716a6ae0c9e7e5c9c720f617 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Mon, 29 Feb 2016 14:11:13 -0800 Subject: [PATCH] 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 --- drivers/net/xilinx_axi_emac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3