aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-07-24 20:38:55 +0000
committerJohn Crispin <blogic@openwrt.org>2012-07-24 20:38:55 +0000
commit868ad2121ef5f87377e3612e6012b433b5306530 (patch)
tree540cbb171aee0af9bdd04b34e713f4eb4b56658f /target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c
parent71df70b95d60a372a3e2a988cc9e7361ed200e73 (diff)
downloadupstream-868ad2121ef5f87377e3612e6012b433b5306530.tar.gz
upstream-868ad2121ef5f87377e3612e6012b433b5306530.tar.bz2
upstream-868ad2121ef5f87377e3612e6012b433b5306530.zip
[ramips] DWC otg usb: compilation fixes and trivial bugfix in slave mode
Signed-of-by: Nikolai Zhubr <n-a-zhubr@yandex.ru> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32823 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c')
-rw-r--r--target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_hcd.c2
1 files changed, 2 insertions, 0 deletions
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 5d249aef28..fe643b6460 100644
--- 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;
+#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 - "