backports: USB_SPEED_SUPER was added in 2.6.31
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 18 Aug 2013 23:38:01 +0000 (01:38 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 27 Aug 2013 18:43:04 +0000 (11:43 -0700)
Now usbnet.c uses it and fails on kernel 2.6.30 without this patch.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/backport-include/linux/usb/ch9.h

index 40d5d3fa7b79cf4192b6271d7294e60d38c04eae..222b3f9c1dee0444cb01cd380564e7a1ea60597a 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <linux/version.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
 #define usb_device_speed old_usb_device_speed
 #define USB_SPEED_UNKNOWN OLD_USB_SPEED_UNKNOWN
 #define USB_SPEED_LOW OLD_USB_SPEED_LOW