netdev
[Top] [All Lists]

[PATCH 2.6.10 4/5] eepro: fix return value in init_module()

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH 2.6.10 4/5] eepro: fix return value in init_module()
From: Aristeu Sergio Rozanski Filho <aris@xxxxxxxxxxxxxxxxx>
Date: Fri, 7 Jan 2005 09:52:20 -0200
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
eepro: fix return value in init_module()

Signed-off-by: Aristeu Sergio Rozanski Filho <aris@xxxxxxxxxxxxxxxxx>

--- 2.6/drivers/net/eepro.c.orig        2004-10-05 22:26:48.000000000 -0300
+++ 2.6/drivers/net/eepro.c     2004-10-05 22:27:00.000000000 -0300
@@ -1811,7 +1811,7 @@ init_module(void)
        if (io[0] == 0 && autodetect == 0) {
                printk(KERN_WARNING "eepro_init_module: Probe is very dangerous 
in ISA boards!\n");
                printk(KERN_WARNING "eepro_init_module: Please add 
\"autodetect=1\" to force probe\n");
-               return 1;
+               return -ENODEV;
        }
        else if (autodetect) {
                /* if autodetect is set then we must force detection */


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.6.10 4/5] eepro: fix return value in init_module(), Aristeu Sergio Rozanski Filho <=