WAN: Fix confusing insmod error code for C101 too.
authorKrzysztof Halasa <khc@pm.waw.pl>
Sun, 20 Apr 2008 17:10:56 +0000 (19:10 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 25 Apr 2008 06:08:10 +0000 (02:08 -0400)
Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/wan/c101.c

index c4c8eab8574f79bb36fc3352648d8df09ab579fb..c2cc42f723d5fdd517ca209183b0b147645cff4b 100644 (file)
@@ -402,7 +402,7 @@ static int __init c101_init(void)
 #ifdef MODULE
                printk(KERN_INFO "c101: no card initialized\n");
 #endif
-               return -ENOSYS; /* no parameters specified, abort */
+               return -EINVAL; /* no parameters specified, abort */
        }
 
        printk(KERN_INFO "%s\n", version);
@@ -420,11 +420,11 @@ static int __init c101_init(void)
                        c101_run(irq, ram);
 
                if (*hw == '\x0')
-                       return first_card ? 0 : -ENOSYS;
+                       return first_card ? 0 : -EINVAL;
        }while(*hw++ == ':');
 
        printk(KERN_ERR "c101: invalid hardware parameters\n");
-       return first_card ? 0 : -ENOSYS;
+       return first_card ? 0 : -EINVAL;
 }