This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/3] usbs_at91: call vendor_control_fn on USB_DEVREQ_TYPE_VENDOR


---
 packages/devs/usb/at91/v3_0/src/usbs_at91.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/devs/usb/at91/v3_0/src/usbs_at91.c b/packages/devs/usb/at91/v3_0/src/usbs_at91.c
index 23d3e1e..063d841 100644
--- a/packages/devs/usb/at91/v3_0/src/usbs_at91.c
+++ b/packages/devs/usb/at91/v3_0/src/usbs_at91.c
@@ -559,10 +559,10 @@ usbs_parse_host_get_command (usbs_control_endpoint * pcep)
       return (*pcep->class_control_fn) (pcep, pcep->class_control_data);
 
     case USB_DEVREQ_TYPE_VENDOR: 
-      if (!pcep->class_control_fn) {
+      if (!pcep->vendor_control_fn) {
         return USBS_CONTROL_RETURN_STALL;
       }
-      return (*pcep->class_control_fn) (pcep, pcep->vendor_control_data);
+      return (*pcep->vendor_control_fn) (pcep, pcep->vendor_control_data);
 
     case USB_DEVREQ_TYPE_RESERVED:
       if (!pcep->reserved_control_fn) {
-- 
1.6.3.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]