projects
/
openwrt
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DWC otg usb: compilation fixes and trivial bugfix in slave mode
[openwrt/.git]
/
target
/
linux
/
ramips
/
files
/
drivers
/
usb
/
dwc_otg
/
dwc_otg_hcd.c
diff --git
a/target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c
b/target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c
index 5d249aef2816150b58b3bf076d6aeb55dc1f9111..fe643b6460324217fa0ea566ff90ba75540f0203 100644
(file)
--- a/
target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c
+++ b/
target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c
@@
-1781,8
+1781,10
@@
int dwc_otg_hcd_hub_control(struct usb_hcd *hcd,
desc->wHubCharacteristics = 0x08;
desc->bPwrOn2PwrGood = 1;
desc->bHubContrCurrent = 0;
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;
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 - "
break;
case GetHubStatus:
DWC_DEBUGPL(DBG_HCD, "DWC OTG HCD HUB CONTROL - "