commit | cd4359194ba5e3bb8706b3d4051ea967bf978595 | [log] [tgz] |
---|---|---|
author | Sean Anderson <sean.anderson@seco.com> | Thu Apr 15 13:06:09 2021 -0400 |
committer | Stefano Babic <sbabic@denx.de> | Sun May 02 12:46:54 2021 +0200 |
tree | 5d0438f67f019cb5ae361be5a0cec5cb9805b132 | |
parent | eccd132974f1f66247e72bbf3fd2bab71ab7d10e [diff] |
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: 6a895d039b ("net: Update eQos driver and FEC driver to use eth phy interfaces") Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>