[ramips] DWC otg usb: compilation fixes and trivial bugfix in slave mode
[openwrt-github/.git] / target / linux / ramips / files / drivers / usb / dwc_otg / dwc_otg_hcd.c
index 5d249aef2816150b58b3bf076d6aeb55dc1f9111..fe643b6460324217fa0ea566ff90ba75540f0203 100644 (file)
@@ -1781,8 +1781,10 @@ int dwc_otg_hcd_hub_control(struct usb_hcd *hcd,
                desc->wHubCharacteristics = 0x08;
                desc->bPwrOn2PwrGood = 1;
                desc->bHubContrCurrent = 0;
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
                desc->u.hs.DeviceRemovable[0] = 0;
                desc->u.hs.DeviceRemovable[1] = 0xff;
+#endif
                break;
        case GetHubStatus:
                DWC_DEBUGPL(DBG_HCD, "DWC OTG HCD HUB CONTROL - "