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 <patrick.ziegler@fh-kl.de>
Date: Thu Aug 15 14:40:20 2013 +0200
backports: add usb_translate_errors()
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Patrick Ziegler <patrick.ziegler@fh-kl.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
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) {