[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1405864963-14217-1-git-send-email-weiyj_lk@163.com>
Date: Sun, 20 Jul 2014 22:02:43 +0800
From: weiyj_lk@....com
To: Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Ezequiel Garcia <ezequiel.garcia@...e-electrons.com>,
Marcin Wojtas <mw@...ihalf.com>
Cc: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>, netdev@...r.kernel.org
Subject: [PATCH -next] net: mvpp2: Fix error return code in mvpp2_probe()
From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
Fix to return -ENODEV from the no ports enabled error handling
case instead of 0.
Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
---
drivers/net/ethernet/marvell/mvpp2.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c
index f4de2a9..1a9f848 100644
--- a/drivers/net/ethernet/marvell/mvpp2.c
+++ b/drivers/net/ethernet/marvell/mvpp2.c
@@ -6308,6 +6308,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;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists