net: stmmac: dwmac-meson8b: Fix an error handling path in 'meson8b_dwmac_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 11 Jun 2018 17:52:27 +0000 (19:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jun 2018 22:36:14 +0000 (15:36 -0700)
commit760a6ed6b6f29c48f97ff5a94ba0dbc639a2e677
treea9398f83e01a5ec0dd75b3a0f3077b1f61ae2a28
parent31962c8c78b3cb480e28120a20b45811b76e207d
net: stmmac: dwmac-meson8b: Fix an error handling path in 'meson8b_dwmac_probe()'

If 'of_device_get_match_data()' fails, we need to release some resources as
done in the other error handling path of this function.

Fixes: efacb568c962 ("net: stmmac: dwmac-meson: extend phy mode setting")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c