From: Sergei Shtylyov Date: Sat, 28 Mar 2015 22:19:48 +0000 (+0300) Subject: ohci-hub: use USB_DT_HUB X-Git-Tag: v4.1-rc1~154^2~15 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=7a2d2672b89d402312b4b741544ab5fdcd48df19;p=cascardo%2Flinux.git 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 . Signed-off-by: Sergei Shtylyov Signed-off-by: Greg Kroah-Hartman --- 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 ( 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;