diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-03-26 23:01:50 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-19 00:46:41 +0400 |
commit | 67c88382e0bf92d7e09536ac47674c9fc9398b98 (patch) | |
tree | 31b4ef95aecd67f87442eb0233987cf7a6733772 /include/linux | |
parent | 0ca7eb235de5a72614c4ddd37707f9d9671e5403 (diff) | |
download | linux-67c88382e0bf92d7e09536ac47674c9fc9398b98.tar.xz |
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 <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; |