net: stmmac: honor error code from stmmac_dt_phy()
authorNiklas Cassel <niklas.cassel@axis.com>
Mon, 19 Feb 2018 17:11:15 +0000 (18:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Feb 2018 19:13:22 +0000 (14:13 -0500)
commitce339abc9a40af75cd1e70b3160f11bda78f3284
treee272b299d05f194215e8fd38fbcaa7a8ed74dc06
parent2ee2132ffb83e38338a85fb6b4eea63d7bc9660c
net: stmmac: honor error code from stmmac_dt_phy()

Honor error code from stmmac_dt_phy() instead of always
returning -ENODEV.

No functional change intended.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c