Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

WAN: Fix confusing insmod error code for C101 too.

parent 7cda1edf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
}