]> git.dujemihanovic.xyz Git - u-boot.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)
commit7704b7fd673a603805f5ddd8807f69d4bc3b9188
tree3fc55c5d245d70fb5868ae3474f64abf9dc4058e
parent339f652992919be11e3f1b791515140de646a3ef
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: 1e354cb39314 ("drivers: net: fsl_enetc: register internal MDIO bus")
Signed-off-by: Michael Walle <michael@walle.cc>
drivers/net/fsl_enetc.c