net: ixp4xx_eth: Return proper error for eth_init_one
authorAxel Lin <axel.lin@gmail.com>
Tue, 4 Jan 2011 19:24:06 +0000 (19:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jan 2011 19:12:01 +0000 (11:12 -0800)
commit0c6610017459ed9642548694fe88971d3f4206aa
treec9ce737e7e881f611b894605fee75f6eee0f1a50
parent238c855805c853eaec95b0bc3065effb64f955a0
net: ixp4xx_eth: Return proper error for eth_init_one

Return PTR_ERR(port->phydev) instead of 1 if phy_connect failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/ixp4xx_eth.c