Skip to content

Commit

Permalink
DM9000 initialization fix
Browse files Browse the repository at this point in the history
DM9000 driver returns success even if it is failed to detect the chip.
Below patch fixes it.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>

 drivers/net/dm9000.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Mike Rapoport authored and Jeff Garzik committed Oct 20, 2007
1 parent 4fa4d23 commit 418d6f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 418d6f8

Please sign in to comment.