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 <alistair.francis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
/* 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;