Received: with ECARTIS (v1.0.0; list netdev); Thu, 06 Jan 2005 15:52:41 -0800 (PST) Received: from smtp.uol.com.br (smtpout5.uol.com.br [200.221.4.196]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j06Nqat0002347 for ; Thu, 6 Jan 2005 15:52:37 -0800 Received: from cathedrallabs.org (200-193-150-052.ctame7013.dsl.brasiltelecom.net.br [200.193.150.52]) by scorpion5.uol.com.br (Postfix) with ESMTP id BE7D67B41; Fri, 7 Jan 2005 09:53:25 -0200 (BRST) Received: by cathedrallabs.org (Postfix, from userid 1000) id 065DB231E8; Fri, 7 Jan 2005 09:52:21 -0200 (GMT+2) Date: Fri, 7 Jan 2005 09:52:20 -0200 From: Aristeu Sergio Rozanski Filho To: Jeff Garzik Cc: netdev@oss.sgi.com Subject: [PATCH 2.6.10 4/5] eepro: fix return value in init_module() Message-ID: <20050107115220.GV27328@cathedrallabs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: ClamAV 0.80/650/Sun Jan 2 19:00:02 2005 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 13583 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: aris@cathedrallabs.org Precedence: bulk X-list: netdev eepro: fix return value in init_module() Signed-off-by: Aristeu Sergio Rozanski Filho --- 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 */