To avoid the failure of mdio_register(), add the remove callback to unregister the mii_dev when removing the ethernet device.
Signed-off-by: Wenyou Yang <wenyou.y...@atmel.com> Acked-by: Joe Hershberger <joe.hershber...@ni.com> --- Changes in v3: None Changes in v2: - Rebase on v2017.03. drivers/net/macb.c | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) Applied to u-boot-dm/next, thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot