diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-07-20 18:02:43 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-21 09:26:58 +0400 |
commit | 575a19354c80fde236382755592256d30d2a27fb (patch) | |
tree | bb842b39b17680dd8cae784820fdb2bfbd3ac625 /drivers/net/ethernet/marvell | |
parent | 468f8646df637e3e298e9c3d87211bf1b045c321 (diff) | |
download | linux-575a19354c80fde236382755592256d30d2a27fb.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/marvell')
-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 f8e1953aeb59..4f6e4a1400e7 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; } |