diff options
author | Johan Hovold <jhovold@gmail.com> | 2012-03-26 15:01:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-18 16:46:41 -0400 |
commit | 67c88382e0bf92d7e09536ac47674c9fc9398b98 (patch) | |
tree | 31b4ef95aecd67f87442eb0233987cf7a6733772 | |
parent | 0ca7eb235de5a72614c4ddd37707f9d9671e5403 (diff) |
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>
-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) | |||
1627 | case 0: | 1627 | case 0: |
1628 | case -ENOMEM: | 1628 | case -ENOMEM: |
1629 | case -ENODEV: | 1629 | case -ENODEV: |
1630 | case -EOPNOTSUPP: | ||
1630 | return error_code; | 1631 | return error_code; |
1631 | default: | 1632 | default: |
1632 | return -EIO; | 1633 | return -EIO; |