提交 038e0245 编写于 作者: M Michael Walle 提交者: Michal Simek

net: gem: unregister mdio bus if probe fails

If probe fails, the mdio bus isn't unregistered. Fix it.
Signed-off-by: NMichael Walle <michael@walle.cc>
Reviewed-by: NRamon Fried <rfried.dev@gmail.com>
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
上级 98757d87
......@@ -711,10 +711,12 @@ static int zynq_gem_probe(struct udevice *dev)
ret = zynq_phy_init(dev);
if (ret)
goto err2;
goto err3;
return ret;
err3:
mdio_unregister(priv->bus);
err2:
free(priv->rxbuffers);
err1:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册