Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 418d6f87 authored by Mike Rapoport's avatar Mike Rapoport Committed by Jeff Garzik
Browse files

DM9000 initialization fix



DM9000 driver returns success even if it is failed to detect the chip.
Below patch fixes it.

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

 drivers/net/dm9000.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 4fa4d23f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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,7 +603,6 @@ dm9000_probe(struct platform_device *pdev)
	}
	return 0;

 release:
out:
	printk("%s: not found (%d).\n", CARDNAME, ret);