--- ipaq.c.orig	2004-12-24 22:35:24.000000000 +0100
+++ ipaq.c	2005-03-24 17:54:17.135229608 +0100
@@ -65,12 +65,13 @@
  * Version Information
  */
 
-#define DRIVER_VERSION "v0.5"
+#define DRIVER_VERSION "v0.6"
 #define DRIVER_AUTHOR "Ganesh Varadarajan <ganesh@veritas.com>"
 #define DRIVER_DESC "USB PocketPC PDA driver"
 
 static __u16 product, vendor;
 static int debug;
+static int ttyUSB = 0;
 
 /* Function prototypes for an ipaq */
 static int  ipaq_open (struct usb_serial_port *port, struct file *filp);
@@ -937,6 +938,9 @@
 		ipaq_id_table[0].idVendor = vendor;
 		ipaq_id_table[0].idProduct = product;
 	}
+	ipaq_device.num_bulk_in = ttyUSB + 1;
+	ipaq_device.num_bulk_out = ttyUSB + 1;
+	ipaq_device.num_ports = ttyUSB + 1;
 	retval = usb_register(&ipaq_driver);
 	if (retval)
 		goto failed_usb_register;
@@ -971,3 +975,6 @@
 
 module_param(product, ushort, 0);
 MODULE_PARM_DESC(product, "User specified USB idProduct");
+
+module_param(ttyUSB, int, 0);
+MODULE_PARM_DESC(ttyUSB, "User specified ttyUSB port number");
