projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
238c855
)
net: ixp4xx_eth: Return proper error for eth_init_one
author
Axel Lin
<
[email protected]
>
Tue, 4 Jan 2011 19:24:06 +0000
(19:24 +0000)
committer
David S. Miller
<
[email protected]
>
Thu, 6 Jan 2011 19:12:01 +0000
(11:12 -0800)
Return PTR_ERR(port->phydev) instead of 1 if phy_connect failed.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Krzysztof Halasa <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/arm/ixp4xx_eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/arm/ixp4xx_eth.c
b/drivers/net/arm/ixp4xx_eth.c
index 6028226a7270fbb91807ce2084ef3b720657529f..9eb9b98a7ae3fd81f208b7495857db73ebb1f94d 100644
(file)
--- a/
drivers/net/arm/ixp4xx_eth.c
+++ b/
drivers/net/arm/ixp4xx_eth.c
@@
-1229,8
+1229,10
@@
static int __devinit eth_init_one(struct platform_device *pdev)
snprintf(phy_id, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, "0", plat->phy);
port->phydev = phy_connect(dev, phy_id, &ixp4xx_adjust_link, 0,
PHY_INTERFACE_MODE_MII);
- if ((err = IS_ERR(port->phydev)))
+ if (IS_ERR(port->phydev)) {
+ err = PTR_ERR(port->phydev);
goto err_free_mem;
+ }
port->phydev->irq = PHY_POLL;