diff options
author | John Crispin <blogic@openwrt.org> | 2012-07-24 20:38:55 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-07-24 20:38:55 +0000 |
commit | 868ad2121ef5f87377e3612e6012b433b5306530 (patch) | |
tree | 540cbb171aee0af9bdd04b34e713f4eb4b56658f /target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_pcd.h | |
parent | 71df70b95d60a372a3e2a988cc9e7361ed200e73 (diff) | |
download | upstream-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_pcd.h')
-rw-r--r-- | target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_pcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_pcd.h b/target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_pcd.h index e39296ff0e..48de957840 100644 --- a/target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_pcd.h +++ b/target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_pcd.h @@ -45,7 +45,11 @@ # include <linux/usb_ch9.h> #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) +#include <linux/usb/gadget.h> +#else #include <linux/usb_gadget.h> +#endif #include <linux/interrupt.h> #include <linux/dma-mapping.h> |