diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-07-20 22:02:43 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-20 22:26:58 -0700 |
commit | 575a19354c80fde236382755592256d30d2a27fb (patch) | |
tree | bb842b39b17680dd8cae784820fdb2bfbd3ac625 | |
parent | 468f8646df637e3e298e9c3d87211bf1b045c321 (diff) | |
download | op-kernel-dev-575a19354c80fde236382755592256d30d2a27fb.zip op-kernel-dev-575a19354c80fde236382755592256d30d2a27fb.tar.gz |
net: mvpp2: Fix error return code in mvpp2_probe()
Fix to return -ENODEV from the no ports enabled error handling
case instead of 0.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index f8e1953..4f6e4a1 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -6307,6 +6307,7 @@ static int mvpp2_probe(struct platform_device *pdev) port_count = of_get_available_child_count(dn); if (port_count == 0) { dev_err(&pdev->dev, "no ports enabled\n"); + err = -ENODEV; goto err_gop_clk; } |