diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-03-26 21:01:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-18 13:46:41 -0700 |
commit | 67c88382e0bf92d7e09536ac47674c9fc9398b98 (patch) | |
tree | 31b4ef95aecd67f87442eb0233987cf7a6733772 /include/linux/usb.h | |
parent | 0ca7eb235de5a72614c4ddd37707f9d9671e5403 (diff) | |
download | linux-3.10-67c88382e0bf92d7e09536ac47674c9fc9398b98.tar.gz linux-3.10-67c88382e0bf92d7e09536ac47674c9fc9398b98.tar.bz2 linux-3.10-67c88382e0bf92d7e09536ac47674c9fc9398b98.zip |
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/usb.h')
-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 73b68d1f2cb..22e9b328975 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; |