]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: Fix error return code in mvpp2_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 20 Jul 2014 14:02:43 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 05:26:58 +0000 (22:26 -0700)
commitb539dae69efa52d828761f1cfc4c66cdd739070c
treebb842b39b17680dd8cae784820fdb2bfbd3ac625
parent3f049106eea7af65ba252d381e85f77325b562a3
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>
drivers/net/ethernet/marvell/mvpp2.c