diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-04-11 16:42:40 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-12 18:23:33 -0400 |
commit | bbeae58c291a3dedc0b7ae9ffbc8763ed63fcd7f (patch) | |
tree | 02be1c0ec27845002f0e8e4c14bcc55a5e7ea14c /drivers/net/ethernet/cadence | |
parent | 7356a764cd76e155014c226ccb157219be918891 (diff) | |
download | op-kernel-dev-bbeae58c291a3dedc0b7ae9ffbc8763ed63fcd7f.zip op-kernel-dev-bbeae58c291a3dedc0b7ae9ffbc8763ed63fcd7f.tar.gz |
net/at91_ether: fix error return code in at91ether_probe()
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
-rw-r--r-- | drivers/net/ethernet/cadence/at91_ether.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c index a5f499f..cc9a185 100644 --- a/drivers/net/ethernet/cadence/at91_ether.c +++ b/drivers/net/ethernet/cadence/at91_ether.c @@ -394,7 +394,8 @@ static int __init at91ether_probe(struct platform_device *pdev) if (res) goto err_disable_clock; - if (macb_mii_init(lp) != 0) + res = macb_mii_init(lp); + if (res) goto err_out_unregister_netdev; /* will be enabled in open() */ |