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)
commitcc223e0f984196b685760dc273efd610ea60576a
treee272b299d05f194215e8fd38fbcaa7a8ed74dc06
parentad63845f0fe1c30c627212f8bef30c4709dd5d3d
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