arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 27 Sep 2021 11:22:04 +0000 (14:22 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:57 +0000 (18:50 +0300)
commit19ef59f1e098a977272080f5a7321169d8b98f34
tree5554948649dc77d5e894bc0234ba12da07e51d60
parent4fdc7e3530eb49dfe0aca79746b1cda30e94c591
arch: powerpc: mpc85xx: free MDIO bus if mdio_register fails

If mdio_register fails, it is nice to not leave behind dangling
allocated memory.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
arch/powerpc/cpu/mpc85xx/ether_fcc.c