[PATCH 2/2] net: fec: Only unregister MII bus if we registered it

2021-04-08 Thread Sean Anderson
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: 6a895d039b ("net: Update eQos driver and FEC driver to use eth phy int

Re: [PATCH 2/2] net: fec: Only unregister MII bus if we registered it

2021-04-11 Thread Ramon Fried
On Fri, Apr 9, 2021 at 12:10 AM Sean Anderson wrote: > > 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: 6a89