Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=418d6f871b7bab19e9f12a6c0e4713a15d6bae10
Commit:     418d6f871b7bab19e9f12a6c0e4713a15d6bae10
Parent:     4fa4d23fa20de67df919030c1216295664866ad7
Author:     Mike Rapoport <[EMAIL PROTECTED]>
AuthorDate: Thu Oct 18 09:23:11 2007 +0200
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Fri Oct 19 23:00:01 2007 -0400

    DM9000 initialization fix
    
    DM9000 driver returns success even if it is failed to detect the chip.
    Below patch fixes it.
    
    Signed-off-by: Mike Rapoport <[EMAIL PROTECTED]>
    
     drivers/net/dm9000.c |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/dm9000.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 27ac010..3286d2a 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to