OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ca7eb2
)
USB: add EOPNOTSUPP to usb_translate_errors
author
Johan Hovold
<jhovold@gmail.com>
Mon, 26 Mar 2012 19:01:50 +0000
(21:01 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 20:46:41 +0000
(13:46 -0700)
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>
include/linux/usb.h
patch
|
blob
|
history
diff --git
a/include/linux/usb.h
b/include/linux/usb.h
index
73b68d1
..
22e9b32
100644
(file)
--- 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;