All pastes #637185 Raw Edit

generic.c patch

public diff v1 · immutable
#637185 ·published 2007-07-28 17:13 UTC
rendered paste body
--- linux/drivers/usb/serial/generic.c.orig	2007-07-28 15:56:22.000000000 +0200+++ linux/drivers/usb/serial/generic.c	2007-07-28 19:08:17.000000000 +0200@@ -37,7 +37,11 @@ module_param(product, ushort, 0); MODULE_PARM_DESC(product, "User specified USB idProduct"); -static struct usb_device_id generic_device_ids[2]; /* Initially all zeroes. */+static struct usb_device_id generic_device_ids[] = {+	{ },	/* entry for the device specified by the module parameters */+	{ USB_DEVICE(0x0681, 0x0046) },+	{ }	/* terminating entry */+};  /* we want to look at all devices, as the vendor/product id can change  * depending on the command line argument */