diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-08-30 08:03:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-17 12:49:24 -0400 |
commit | 6c74dada4f5a37037dee1da6a8a7aeb56c558bca (patch) | |
tree | 52879fa53c1e265f994e6596a275c6bb31548132 /include/linux/usb.h | |
parent | 37c3a3c4ffde23115c58bec7694082b3a44c6da5 (diff) |
usb-core: Make usb_free_streams return an error
The hcd-driver free_streams method can return an error, so lets properly
propagate that.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r-- | include/linux/usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 001629cd1a97..f726c39097e0 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -702,7 +702,7 @@ extern int usb_alloc_streams(struct usb_interface *interface, | |||
702 | unsigned int num_streams, gfp_t mem_flags); | 702 | unsigned int num_streams, gfp_t mem_flags); |
703 | 703 | ||
704 | /* Reverts a group of bulk endpoints back to not using stream IDs. */ | 704 | /* Reverts a group of bulk endpoints back to not using stream IDs. */ |
705 | extern void usb_free_streams(struct usb_interface *interface, | 705 | extern int usb_free_streams(struct usb_interface *interface, |
706 | struct usb_host_endpoint **eps, unsigned int num_eps, | 706 | struct usb_host_endpoint **eps, unsigned int num_eps, |
707 | gfp_t mem_flags); | 707 | gfp_t mem_flags); |
708 | 708 | ||