backports: remove useless include in USB_VENDOR_AND_INTERFACE_INFO
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 17 Jun 2013 11:10:59 +0000 (13:10 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 19 Jun 2013 20:22:28 +0000 (22:22 +0200)
This also changes the #if <kernel version> to a ifndef, now it is also
compatible with kernel already containing this backport.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/usb.h

index 8ea9d75021a42d0f211286dec83f39a24b813839..6d27479b1d15da18c6364302cf10daf98b421be2 100644 (file)
@@ -18,7 +18,7 @@
                       usb_deregister)
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0)
+#ifndef USB_VENDOR_AND_INTERFACE_INFO
 /**
  * Backports
  *
@@ -28,7 +28,6 @@
  *
  *     USB: add USB_VENDOR_AND_INTERFACE_INFO() macro
  */
-#include <linux/usb.h>
 #define USB_VENDOR_AND_INTERFACE_INFO(vend, cl, sc, pr) \
        .match_flags = USB_DEVICE_ID_MATCH_INT_INFO \
                | USB_DEVICE_ID_MATCH_VENDOR, \
@@ -36,7 +35,7 @@
        .bInterfaceClass = (cl), \
        .bInterfaceSubClass = (sc), \
        .bInterfaceProtocol = (pr)
-#endif
+#endif /* USB_VENDOR_AND_INTERFACE_INFO */
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
 #ifdef CPTCFG_BACKPORT_OPTION_USB_URB_THREAD_FIX