diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-03-28 18:28:15 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-03 13:03:16 -0400 |
commit | 0ce6fe9e1b4666ebccb403e6fa4e8304599d50bd (patch) | |
tree | 3bb7613550aafcb3b9a92b9781d81d903a4db0cc /drivers/usb | |
parent | 3e5dd4c349465066b85a487af6fabd4fc32c7987 (diff) |
u132-hcd: 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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/u132-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index ad97e8a1ad1c..d51687780b61 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c | |||
@@ -2584,7 +2584,7 @@ static int u132_roothub_descriptor(struct u132 *u132, | |||
2584 | retval = u132_read_pcimem(u132, roothub.a, &rh_a); | 2584 | retval = u132_read_pcimem(u132, roothub.a, &rh_a); |
2585 | if (retval) | 2585 | if (retval) |
2586 | return retval; | 2586 | return retval; |
2587 | desc->bDescriptorType = 0x29; | 2587 | desc->bDescriptorType = USB_DT_HUB; |
2588 | desc->bPwrOn2PwrGood = (rh_a & RH_A_POTPGT) >> 24; | 2588 | desc->bPwrOn2PwrGood = (rh_a & RH_A_POTPGT) >> 24; |
2589 | desc->bHubContrCurrent = 0; | 2589 | desc->bHubContrCurrent = 0; |
2590 | desc->bNbrPorts = u132->num_ports; | 2590 | desc->bNbrPorts = u132->num_ports; |