diff options
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 e39296ff0..48de95784 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> |