]> git.baikalelectronics.ru Git - uboot.git/commit
net: enetc: unregister mdiobus
authorMichael Walle <michael@walle.cc>
Tue, 31 May 2022 16:36:16 +0000 (18:36 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 Jun 2022 15:15:24 +0000 (11:15 -0400)
commitb6e4de3c02aa986e310b94e46f66182f3c240635
tree3fc55c5d245d70fb5868ae3474f64abf9dc4058e
parenta45f05b40c87549f225e1b6a2c6afe9150107366
net: enetc: unregister mdiobus

If the device fails to probe - for example, when there is no
ethaddr set - then the private data is automatically freed
but the mdiobus remains registered.

Fixes: 38c1e2e25100 ("drivers: net: fsl_enetc: register internal MDIO bus")
Signed-off-by: Michael Walle <michael@walle.cc>
drivers/net/fsl_enetc.c