Changeset bad4a05 in mainline for uspace/drv/bus/usb/xhci/bus.c
- Timestamp:
- 2018-01-11T04:12:06Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0892663a
- Parents:
- a6c4597
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-11 01:31:42)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-11 04:12:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/bus.c
ra6c4597 rbad4a05 193 193 } 194 194 195 static int endpoint_unregister(endpoint_t *);196 197 195 /** 198 196 * Remove device from XHCI bus. Transition it to the offline state, abort all … … 205 203 * @return Error code. 206 204 */ 207 static intdevice_remove(device_t *dev)205 static void device_remove(device_t *dev) 208 206 { 209 207 int err; … … 249 247 continue; 250 248 251 if ((err = endpoint_unregister(dev->endpoints[i]))) { 252 usb_log_warning("Failed to unregister endpoint " XHCI_EP_FMT ": %s", 253 XHCI_EP_ARGS(*xhci_device_get_endpoint(xhci_dev, i)), str_error(err)); 254 } 249 bus_endpoint_remove(dev->endpoints[i]); 255 250 } 256 251 … … 258 253 /* XXX: Not a good idea, this method should not destroy devices. */ 259 254 hcd_ddf_fun_destroy(dev); 260 261 return EOK;262 255 } 263 256 … … 415 408 * Bus callback. 416 409 */ 417 static intendpoint_unregister(endpoint_t *ep_base)410 static void endpoint_unregister(endpoint_t *ep_base) 418 411 { 419 412 int err; … … 433 426 " the slot has already been disabled.", XHCI_EP_ARGS(*ep)); 434 427 } 435 436 return EOK;437 428 } 438 429
Note:
See TracChangeset
for help on using the changeset viewer.