Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sergei Shtylyov and committed by
Greg Kroah-Hartman
7a2d2672 2c42c087

+1 -1
+1 -1
drivers/usb/host/ohci-hub.c
··· 536 536 u32 rh = roothub_a (ohci); 537 537 u16 temp; 538 538 539 - desc->bDescriptorType = 0x29; 539 + desc->bDescriptorType = USB_DT_HUB; 540 540 desc->bPwrOn2PwrGood = (rh & RH_A_POTPGT) >> 24; 541 541 desc->bHubContrCurrent = 0; 542 542