All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] hcd.c
@ 2005-03-07 16:26 Carlo Perassi
  2005-03-07 19:16 ` Adrian Bunk
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Carlo Perassi @ 2005-03-07 16:26 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]

Hi.

I know this patch is not a clean solution but without it I got the
following error

drivers/usb/core/hcd.c:131: error: parse error before '>>' token
drivers/usb/core/hcd.c:131: error: initializer element is not constant
drivers/usb/core/hcd.c:131: error: (near initialization for
`usb2_rh_dev_descrip
tor[12]')
drivers/usb/core/hcd.c:131: error: parse error before '>>' token
drivers/usb/core/hcd.c:131: error: initializer element is not constant
drivers/usb/core/hcd.c:131: error: (near initialization for
`usb2_rh_dev_descrip
tor[13]')
drivers/usb/core/hcd.c:154: error: parse error before '>>' token
drivers/usb/core/hcd.c:154: error: initializer element is not constant
drivers/usb/core/hcd.c:154: error: (near initialization for
`usb11_rh_dev_descri
ptor[12]')
drivers/usb/core/hcd.c:154: error: parse error before '>>' token
drivers/usb/core/hcd.c:154: error: initializer element is not constant
drivers/usb/core/hcd.c:154: error: (near initialization for
`usb11_rh_dev_descri
ptor[13]')

-- 
Carlo Perassi - http://www.linux.it/~carlo/

[-- Attachment #2: hcd.patch --]
[-- Type: application/octet-stream, Size: 1214 bytes --]

Signed-off-by: Carlo Perassi <carlo@linux.it>

---

--- linux-2.6.11/drivers/usb/core/hcd.c	2005-03-07 16:18:06.000000000 +0100
+++ linux-2.6.11-mod/drivers/usb/core/hcd.c	2005-03-07 16:18:56.000000000 +0100
@@ -112,9 +112,6 @@ DECLARE_WAIT_QUEUE_HEAD(usb_kill_urb_que
 
 /*-------------------------------------------------------------------------*/
 
-#define KERNEL_REL	((LINUX_VERSION_CODE >> 16) & 0x0ff)
-#define KERNEL_VER	((LINUX_VERSION_CODE >> 8) & 0x0ff)
-
 /* usb 2.0 root hub device descriptor */
 static const u8 usb2_rh_dev_descriptor [18] = {
 	0x12,       /*  __u8  bLength; */
@@ -128,7 +125,7 @@ static const u8 usb2_rh_dev_descriptor [
 
 	0x00, 0x00, /*  __le16 idVendor; */
  	0x00, 0x00, /*  __le16 idProduct; */
-	KERNEL_VER, KERNEL_REL, /*  __le16 bcdDevice */
+	0x02, 0x06, /*  __le16 bcdDevice */
 
 	0x03,       /*  __u8  iManufacturer; */
 	0x02,       /*  __u8  iProduct; */
@@ -151,7 +148,7 @@ static const u8 usb11_rh_dev_descriptor 
 
 	0x00, 0x00, /*  __le16 idVendor; */
  	0x00, 0x00, /*  __le16 idProduct; */
-	KERNEL_VER, KERNEL_REL, /*  __le16 bcdDevice */
+	0x02, 0x06, /*  __le16 bcdDevice */
 
 	0x03,       /*  __u8  iManufacturer; */
 	0x02,       /*  __u8  iProduct; */

[-- Attachment #3: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-07 23:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-07 16:26 [KJ] [PATCH] hcd.c Carlo Perassi
2005-03-07 19:16 ` Adrian Bunk
2005-03-07 19:58 ` Carlo Perassi
2005-03-07 23:11 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.