patch-2.2.15 linux/drivers/telephony/phonedev.c

Next file: linux/drivers/video/atyfb.c
Previous file: linux/drivers/telephony/ixj.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/telephony/phonedev.c linux/drivers/telephony/phonedev.c
@@ -10,7 +10,8 @@
  *
  * Author:      Alan Cox, <alan@redhat.com>
  *
- * Fixes:
+ * Fixes:       Mar 01 2000 Thomas Sparr, <thomas.l.sparr@telia.com>
+ *              phone_register_device now works with unit!=PHONE_UNIT_ANY
  */
 
 #include <linux/config.h>
@@ -84,7 +85,7 @@
 
 	if (unit != PHONE_UNIT_ANY) {
 		base = unit;
-		end = unit;
+		end = unit + 1;  /* enter the loop at least one time */
 	}
 	for (i = base; i < end; i++) {
 		if (phone_device[i] == NULL) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)