Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

WAN: Fix confusing insmod error code for C101 too.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Krzysztof Halasa and committed by
Jeff Garzik
d753d824 7cda1edf

+3 -3
+3 -3
drivers/net/wan/c101.c
··· 402 402 #ifdef MODULE 403 403 printk(KERN_INFO "c101: no card initialized\n"); 404 404 #endif 405 - return -ENOSYS; /* no parameters specified, abort */ 405 + return -EINVAL; /* no parameters specified, abort */ 406 406 } 407 407 408 408 printk(KERN_INFO "%s\n", version); ··· 420 420 c101_run(irq, ram); 421 421 422 422 if (*hw == '\x0') 423 - return first_card ? 0 : -ENOSYS; 423 + return first_card ? 0 : -EINVAL; 424 424 }while(*hw++ == ':'); 425 425 426 426 printk(KERN_ERR "c101: invalid hardware parameters\n"); 427 - return first_card ? 0 : -ENOSYS; 427 + return first_card ? 0 : -EINVAL; 428 428 } 429 429 430 430