[PATCH 2.4.9-ac16] usb serial compile error.

From: Stelian Pop (stelian.pop@fr.alcove.com)
Date: Fri Sep 28 2001 - 04:52:03 EST


When compiling a USB serial driver (mct_u232 in my case)
without USB generic serial support, the compile process
stops because of undefined 'vendor' and 'product'
symbols.

The attached patch corrects this issue.

Stelian.

--- linux-2.4.9-ac16/drivers/usb/serial/usbserial.c.orig Fri Sep 28 11:35:39 2001
+++ linux-2.4.9-ac16/drivers/usb/serial/usbserial.c Fri Sep 28 11:35:52 2001
@@ -323,11 +323,10 @@
 static void generic_write_bulk_callback (struct urb *urb);
 static void generic_shutdown (struct usb_serial *serial);
 
-
-#ifdef CONFIG_USB_SERIAL_GENERIC
 static __u16 vendor = 0x05f9;
 static __u16 product = 0xffff;
 
+#ifdef CONFIG_USB_SERIAL_GENERIC
 static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */
 
 /* All of the device info needed for the Generic Serial Converter */

-- 
Stelian Pop <stelian.pop@fr.alcove.com>
|---------------- Free Software Engineer -----------------|
| Alc˘ve - http://www.alcove.com - Tel: +33 1 49 22 68 00 |
|------------- Alc˘ve, liberating software ---------------|
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 30 2001 - 21:01:01 EST