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>
This commit is contained in:
parent
2c42c08774
commit
7a2d2672b8
@ -536,7 +536,7 @@ ohci_hub_descriptor (
|
||||
u32 rh = roothub_a (ohci);
|
||||
u16 temp;
|
||||
|
||||
desc->bDescriptorType = 0x29;
|
||||
desc->bDescriptorType = USB_DT_HUB;
|
||||
desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24;
|
||||
desc->bHubContrCurrent = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user