Commit d753d824 authored by Krzysztof Halasa's avatar Krzysztof Halasa Committed by Jeff Garzik

WAN: Fix confusing insmod error code for C101 too.

Signed-off-by: default avatarKrzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 7cda1edf
...@@ -402,7 +402,7 @@ static int __init c101_init(void) ...@@ -402,7 +402,7 @@ static int __init c101_init(void)
#ifdef MODULE #ifdef MODULE
printk(KERN_INFO "c101: no card initialized\n"); printk(KERN_INFO "c101: no card initialized\n");
#endif #endif
return -ENOSYS; /* no parameters specified, abort */ return -EINVAL; /* no parameters specified, abort */
} }
printk(KERN_INFO "%s\n", version); printk(KERN_INFO "%s\n", version);
...@@ -420,11 +420,11 @@ static int __init c101_init(void) ...@@ -420,11 +420,11 @@ static int __init c101_init(void)
c101_run(irq, ram); c101_run(irq, ram);
if (*hw == '\x0') if (*hw == '\x0')
return first_card ? 0 : -ENOSYS; return first_card ? 0 : -EINVAL;
}while(*hw++ == ':'); }while(*hw++ == ':');
printk(KERN_ERR "c101: invalid hardware parameters\n"); printk(KERN_ERR "c101: invalid hardware parameters\n");
return first_card ? 0 : -ENOSYS; return first_card ? 0 : -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment