4/5: eepro: fix return value in init_module()
Subsystems (2)
PATCH 1/1 4/5: eepro: fix return value in init_module()
Signature · 2 lines
-- Aristeu
eepro: fix return value in init_module()
Signed-off-by Aristeu Sergio Rozanski Filho <[email protected]>
drivers/net/eepro.c renamed from drivers/net/eepro.c.orig +1 -1
@@ -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 */