diff options
author | John Crispin <john@openwrt.org> | 2012-07-24 20:38:55 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-07-24 20:38:55 +0000 |
commit | 5e52619b763af5cff25d11865c29f84fdf8c5a25 (patch) | |
tree | 3b5513219ac6b1c6d8c5db72fd7cb75cf6d44f1f /target/linux/ramips/files/drivers/usb/dwc_otg/dwc_otg_pcd.h | |
parent | fb81e7a802059362824dad642c99a66bc4011ba3 (diff) | |
download | upstream-5e52619b763af5cff25d11865c29f84fdf8c5a25.tar.gz upstream-5e52619b763af5cff25d11865c29f84fdf8c5a25.tar.bz2 upstream-5e52619b763af5cff25d11865c29f84fdf8c5a25.zip |
DWC otg usb: compilation fixes and trivial bugfix in slave mode
Signed-of-by: Nikolai Zhubr <n-a-zhubr@yandex.ru>
SVN-Revision: 32823
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> |