Changeset c7dd69d in mainline for uspace/drv/usbhid
- Timestamp:
- 2011-04-15T13:19:59Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da1dd48
- Parents:
- e3b5129 (diff), 8fd4ba0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/drv/usbhid
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/main.c
re3b5129 rc7dd69d 42 42 43 43 #include <usb/devdrv.h> 44 #include <usb/devpoll.h> 44 45 45 46 #include "usbhid.h" -
uspace/drv/usbhid/usbhid.c
re3b5129 rc7dd69d 379 379 rc = usb_hid_check_pipes(hid_dev, dev); 380 380 if (rc != EOK) { 381 usb_hid_free(&hid_dev);381 //usb_hid_free(&hid_dev); 382 382 return rc; 383 383 } … … 387 387 if (rc != EOK) { 388 388 usb_log_error("Failed to initialize report parser.\n"); 389 usb_hid_free(&hid_dev);389 //usb_hid_free(&hid_dev); 390 390 return rc; 391 391 } … … 405 405 " device.\n"); 406 406 fallback = true; 407 assert(hid_dev->subdrivers == NULL); 408 assert(hid_dev->subdriver_count == 0); 407 409 } 408 410 } else { … … 445 447 usb_log_error("No subdriver for handling this device could be" 446 448 " initialized: %s.\n", str_error(rc)); 447 usb_hid_free(&hid_dev); 449 usb_log_debug("Subdriver count: %d\n", 450 hid_dev->subdriver_count); 451 //usb_hid_free(&hid_dev); 448 452 } else { 449 453 bool ok = false; … … 569 573 } 570 574 575 usb_log_debug("Subdrivers: %p, subdriver count: %d\n", 576 (*hid_dev)->subdrivers, (*hid_dev)->subdriver_count); 577 571 578 assert((*hid_dev)->subdrivers != NULL 572 579 || (*hid_dev)->subdriver_count == 0);
Note:
See TracChangeset
for help on using the changeset viewer.
