提交 418d6f87 编写于 作者: M Mike Rapoport 提交者: Jeff Garzik

DM9000 initialization fix

DM9000 driver returns success even if it is failed to detect the chip.
Below patch fixes it.
Signed-off-by: NMike Rapoport <mike@compulab.co.il>

 drivers/net/dm9000.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 4fa4d23f
......@@ -542,7 +542,8 @@ dm9000_probe(struct platform_device *pdev)
if (id_val != DM9000_ID) {
printk("%s: wrong id: 0x%08x\n", CARDNAME, id_val);
goto release;
ret = -ENODEV;
goto out;
}
/* from this point we assume that we have found a DM9000 */
......@@ -602,8 +603,7 @@ dm9000_probe(struct platform_device *pdev)
}
return 0;
release:
out:
out:
printk("%s: not found (%d).\n", CARDNAME, ret);
dm9000_release_board(pdev, db);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册