diff options
Diffstat (limited to 'drivers/net/usb/pegasus.c')
| -rw-r--r-- | drivers/net/usb/pegasus.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 6fdaba8674b9..ed4a508ef262 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c | |||
| @@ -62,8 +62,11 @@ static char *devid=NULL; | |||
| 62 | static struct usb_eth_dev usb_dev_id[] = { | 62 | static struct usb_eth_dev usb_dev_id[] = { |
| 63 | #define PEGASUS_DEV(pn, vid, pid, flags) \ | 63 | #define PEGASUS_DEV(pn, vid, pid, flags) \ |
| 64 | {.name = pn, .vendor = vid, .device = pid, .private = flags}, | 64 | {.name = pn, .vendor = vid, .device = pid, .private = flags}, |
| 65 | #define PEGASUS_DEV_CLASS(pn, vid, pid, dclass, flags) \ | ||
| 66 | PEGASUS_DEV(pn, vid, pid, flags) | ||
| 65 | #include "pegasus.h" | 67 | #include "pegasus.h" |
| 66 | #undef PEGASUS_DEV | 68 | #undef PEGASUS_DEV |
| 69 | #undef PEGASUS_DEV_CLASS | ||
| 67 | {NULL, 0, 0, 0}, | 70 | {NULL, 0, 0, 0}, |
| 68 | {NULL, 0, 0, 0} | 71 | {NULL, 0, 0, 0} |
| 69 | }; | 72 | }; |
| @@ -71,8 +74,18 @@ static struct usb_eth_dev usb_dev_id[] = { | |||
| 71 | static struct usb_device_id pegasus_ids[] = { | 74 | static struct usb_device_id pegasus_ids[] = { |
| 72 | #define PEGASUS_DEV(pn, vid, pid, flags) \ | 75 | #define PEGASUS_DEV(pn, vid, pid, flags) \ |
| 73 | {.match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = vid, .idProduct = pid}, | 76 | {.match_flags = USB_DEVICE_ID_MATCH_DEVICE, .idVendor = vid, .idProduct = pid}, |
| 77 | /* | ||
| 78 | * The Belkin F8T012xx1 bluetooth adaptor has the same vendor and product | ||
| 79 | * IDs as the Belkin F5D5050, so we need to teach the pegasus driver to | ||
| 80 | * ignore adaptors belonging to the "Wireless" class 0xE0. For this one | ||
| 81 | * case anyway, seeing as the pegasus is for "Wired" adaptors. | ||
| 82 | */ | ||
| 83 | #define PEGASUS_DEV_CLASS(pn, vid, pid, dclass, flags) \ | ||
| 84 | {.match_flags = (USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_DEV_CLASS), \ | ||
| 85 | .idVendor = vid, .idProduct = pid, .bDeviceClass = dclass}, | ||
| 74 | #include "pegasus.h" | 86 | #include "pegasus.h" |
| 75 | #undef PEGASUS_DEV | 87 | #undef PEGASUS_DEV |
| 88 | #undef PEGASUS_DEV_CLASS | ||
| 76 | {}, | 89 | {}, |
| 77 | {} | 90 | {} |
| 78 | }; | 91 | }; |
