net: macb: add of_phy_deregister_fixed_link to error paths
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 8 Nov 2017 08:56:34 +0000 (09:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 06:27:44 +0000 (15:27 +0900)
commit9ce981401cce7852542cab267702b6e89f37a4b8
tree5c0fbbc50ae617bd9d7740057c9c0c61d5417b6c
parente5c500eb298a9f5ef9b80d16fcea9662c89467b7
net: macb: add of_phy_deregister_fixed_link to error paths

We add the call of_phy_deregister_fixed_link to all associated
error paths for memory clean up.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb_main.c