diff options
| author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 18:19:48 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:03:17 -0400 |
| commit | 7a2d2672b89d402312b4b741544ab5fdcd48df19 (patch) | |
| tree | 3250c646b4ff1e5b82fe7276beede51ae1b21b54 | |
| parent | 2c42c08774f07824ac689cf198e26ffba7831564 (diff) | |
ohci-hub: use USB_DT_HUB
Fix using the bare number to set the 'bDescriptorType' field of the Hub
Descriptor while the value is #define'd in <linux/usb/ch11.h>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/usb/host/ohci-hub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index fe2aedd8a54d..ed678c17c4ea 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c | |||
| @@ -536,7 +536,7 @@ ohci_hub_descriptor ( | |||
| 536 | u32 rh = roothub_a (ohci); | 536 | u32 rh = roothub_a (ohci); |
| 537 | u16 temp; | 537 | u16 temp; |
| 538 | 538 | ||
| 539 | desc->bDescriptorType = 0x29; | 539 | desc->bDescriptorType = USB_DT_HUB; |
| 540 | desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; | 540 | desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; |
| 541 | desc->bHubContrCurrent = 0; | 541 | desc->bHubContrCurrent = 0; |
| 542 | 542 | ||
