net: stmmac: dwmac-rk: fix error path in rk_gmac_probe
authorEmil Renner Berthing <kernel@esmil.dk>
Sat, 21 Mar 2020 14:36:19 +0000 (15:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 02:58:48 +0000 (19:58 -0700)
commit9de9aa487daff7a5c73434c24269b44ed6a428e6
tree48ab4f0c91005cd1c5d5660f296e7150421cf110
parent2091a3d42b4f339eaeed11228e0cbe9d4f92f558
net: stmmac: dwmac-rk: fix error path in rk_gmac_probe

Make sure we clean up devicetree related configuration
also when clock init fails.

Fixes: fecd4d7eef8b ("net: stmmac: dwmac-rk: Add integrated PHY support")
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c