lkml.org 
[lkml]   [2001]   [Sep]   [28]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 28 Sep 2001 11:52:03 +0200
FromStelian Pop <>
Subject[PATCH 2.4.9-ac16] usb serial compile error.
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/

\
 
 \ /
  Last update: 2005-03-22 13:03    [from the cache]
©2003-2008