[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH 2/7] backports: remove useless include in USB_VENDOR_AND_INTERFACE_INFO
From: Hauke Mehrtens <hauke () hauke-m ! de>
Date: 2013-06-17 13:21:02
Message-ID: 1371475267-27179-2-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]
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 | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/backport/backport-include/linux/usb.h b/backport/backport-include/linux/usb.h
index 8ea9d75..6d27479 100644
--- a/backport/backport-include/linux/usb.h
+++ b/backport/backport-include/linux/usb.h
@@ -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
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic