From 7c2bebcb9966dac91720a5b1849862e2c577c210 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Mon, 19 Aug 2013 01:37:47 +0200 Subject: [PATCH] backports: usb_translate_errors() is needed for < 3.2 usb_translate_errors() is needed for every kernel < 3.2 and not < 2.6.39. This fixes a problem introduced in this commit: commit aee2dc1d7fd03d3900e06e88793b519e21049de0 Author: Patrick Ziegler Date: Thu Aug 15 14:40:20 2013 +0200 backports: add usb_translate_errors() Signed-off-by: Hauke Mehrtens Cc: Patrick Ziegler Signed-off-by: Luis R. Rodriguez --- backport/backport-include/linux/usb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backport/backport-include/linux/usb.h b/backport/backport-include/linux/usb.h index a717b7a07362..70d89b815e18 100644 --- a/backport/backport-include/linux/usb.h +++ b/backport/backport-include/linux/usb.h @@ -145,7 +145,7 @@ extern void usb_unpoison_urb(struct urb *urb); extern int usb_anchor_empty(struct usb_anchor *anchor); #endif /* 2.6.23-2.6.27 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,39) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0) static inline int usb_translate_errors(int error_code) { switch (error_code) { -- 2.30.2