dwc_otg_hcd.h: fix for v2.6.36
author黄涛 <huangtao@rock-chips.com>
Mon, 1 Aug 2011 03:26:57 +0000 (11:26 +0800)
committer黄涛 <huangtao@rock-chips.com>
Mon, 1 Aug 2011 03:26:57 +0000 (11:26 +0800)
drivers/usb/dwc_otg/dwc_otg_hcd.h

index a9253e7dd2dab54f6606c8027c1990973730751c..079a69950878194415c4209c361370ca25b39555 100755 (executable)
 
 #include <linux/list.h>
 #include <linux/usb.h>
+#include <linux/version.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35))
+#include <linux/usb/hcd.h>
+#else
 #include <../drivers/usb/core/hcd.h>
+#endif
 
 struct dwc_otg_device;