Changeset 9c5fd7a in mainline
- Timestamp:
- 2011-10-15T14:30:18Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b803845
- Parents:
- ce2a1c2
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmouse/mouse.c
rce2a1c2 r9c5fd7a 124 124 mouse->console_sess = NULL; 125 125 126 usb_device_de stroy(dev);126 usb_device_deinit(dev); 127 127 } 128 128 -
uspace/lib/usbdev/include/usb/dev/driver.h
rce2a1c2 r9c5fd7a 172 172 int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t); 173 173 int usb_device_create(ddf_dev_t *, usb_endpoint_description_t **, usb_device_t **, const char **); 174 void usb_device_de stroy(usb_device_t *);174 void usb_device_deinit(usb_device_t *); 175 175 void * usb_device_data_alloc(usb_device_t *, size_t); 176 176 -
uspace/lib/usbdev/src/devdrv.c
rce2a1c2 r9c5fd7a 154 154 rc = driver->ops->device_add(dev); 155 155 if (rc != EOK) 156 usb_device_de stroy(dev);156 usb_device_deinit(dev); 157 157 return rc; 158 158 } … … 191 191 const int ret = driver->ops->device_gone(usb_dev); 192 192 if (ret == EOK) 193 usb_device_de stroy(usb_dev);193 usb_device_deinit(usb_dev); 194 194 195 195 return ret; … … 590 590 /** Destroy instance of a USB device. 591 591 * 592 * @param dev Device to be destroyed. 593 */ 594 void usb_device_destroy(usb_device_t *dev) 592 * @param dev Device to be de-initialized. 593 * 594 * Does not free/destroy supplied pointer. 595 */ 596 void usb_device_deinit(usb_device_t *dev) 595 597 { 596 598 if (dev == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.