Skip to content
Commit cd435919 authored by Sean Anderson's avatar Sean Anderson Committed by Stefano Babic
Browse files

net: fec: Only unregister MII bus if we registered it



If we fail to probe for whatever reason, we cannot unregister/free the
MII bus unless we registered it with fec_get_miibus. This fixes FECs
sharing an MDIO bus from destroying it, preventing the other FEC from
using it.

Fixes: 6a895d03 ("net: Update eQos driver and FEC driver to use eth phy interfaces")
Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent eccd1329
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment