From: Johan Hovold Date: Mon, 26 Mar 2012 19:01:50 +0000 (+0200) Subject: USB: add EOPNOTSUPP to usb_translate_errors X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=67c88382e0bf92d7e09536ac47674c9fc9398b98;p=openwrt%2Fstaging%2Fblogic.git USB: add EOPNOTSUPP to usb_translate_errors Allow drivers to return EOPNOTSUPP to user space even when filtered through usb_translate_errors. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usb.h b/include/linux/usb.h index 73b68d1f2cb0..22e9b328975b 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -1627,6 +1627,7 @@ static inline int usb_translate_errors(int error_code) case 0: case -ENOMEM: case -ENODEV: + case -EOPNOTSUPP: return error_code; default: return -EIO;