Missing device IDs in rt2870

From: Jakob Gruber
Date: Tue Jul 28 2009 - 17:56:56 EST


>From http://bugzilla.kernel.org/show_bug.cgi?id=13459#c3

In rt2870.h, there are 2 lists of USB devices. One is within

#ifndef RT30xx
#endif

and the other in

#ifdef RT30xx
#endif

Since I'm not sure whether to add the devices to both lists or only the first,
I'm posting a patch for both variations.

Patch 1, add devices only to first list:

--- a/drivers/staging/rt2870/rt2870.h
+++ b/drivers/staging/rt2870/rt2870.h
@@ -77,6 +77,9 @@
#ifndef RT30xx
#define RT2870_USB_DEVICES \
{ \
+ {USB_DEVICE(0x2019,0xED14)}, /* Planex Communications, Inc. */
+ {USB_DEVICE(0x1737,0x0070)}, /* Linksys */
+ {USB_DEVICE(0x050D,0x815C)}, /* Belkin */ \
{USB_DEVICE(0x148F,0x2770)}, /* Ralink */ \
{USB_DEVICE(0x1737,0x0071)}, /* Linksys WUSB600N */ \
{USB_DEVICE(0x148F,0x2870)}, /* Ralink */ \

Patch 2, add devices to both lists:

--- a/drivers/staging/rt2870/rt2870.h
+++ b/drivers/staging/rt2870/rt2870.h
@@ -77,6 +77,9 @@
#ifndef RT30xx
#define RT2870_USB_DEVICES \
{ \
+ {USB_DEVICE(0x2019,0xED14)}, /* Planex Communications, Inc. */
+ {USB_DEVICE(0x1737,0x0070)}, /* Linksys */
+ {USB_DEVICE(0x050D,0x815C)}, /* Belkin */ \
{USB_DEVICE(0x148F,0x2770)}, /* Ralink */ \
{USB_DEVICE(0x1737,0x0071)}, /* Linksys WUSB600N */ \
{USB_DEVICE(0x148F,0x2870)}, /* Ralink */ \
@@ -144,6 +147,9 @@
#ifdef RT30xx
#define RT2870_USB_DEVICES \
{ \
+ {USB_DEVICE(0x2019,0xED14)}, /* Planex Communications, Inc. */
+ {USB_DEVICE(0x1737,0x0070)}, /* Linksys */
+ {USB_DEVICE(0x050D,0x815C)}, /* Belkin */ \
{USB_DEVICE(0x148F,0x2770)}, /* Ralink */ \
{USB_DEVICE(0x148F,0x2870)}, /* Ralink */ \
{USB_DEVICE(0x148F,0x3070)}, /* Ralink 3070 */ \

Thanks!

--
Jakob Gruber <jakob.gruber@xxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/