Changes in uspace/drv/bus/usb/usbmid/main.c [6785b538:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmid/main.c
r6785b538 rb7fd2a0 49 49 * @return Error code. 50 50 */ 51 static int usbmid_device_add(usb_device_t *dev)51 static errno_t usbmid_device_add(usb_device_t *dev) 52 52 { 53 53 usb_log_info("Taking care of new MID `%s'.\n", usb_device_get_name(dev)); … … 61 61 * @return Error code. 62 62 */ 63 static int usbmid_device_remove(usb_device_t *dev)63 static errno_t usbmid_device_remove(usb_device_t *dev) 64 64 { 65 65 assert(dev); … … 68 68 69 69 /* Remove ctl function */ 70 int ret = ddf_fun_unbind(usb_mid->ctl_fun);70 errno_t ret = ddf_fun_unbind(usb_mid->ctl_fun); 71 71 if (ret != EOK) { 72 72 usb_log_error("Failed to unbind USB MID ctl function: %s.\n", … … 87 87 88 88 /* Tell the child to go off-line. */ 89 int pret = ddf_fun_offline(iface->fun);89 errno_t pret = ddf_fun_offline(iface->fun); 90 90 if (pret != EOK) { 91 91 usb_log_warning("Failed to turn off child `%s': %s\n", … … 110 110 * @return Error code. 111 111 */ 112 static int usbmid_device_gone(usb_device_t *dev)112 static errno_t usbmid_device_gone(usb_device_t *dev) 113 113 { 114 114 assert(dev); … … 119 119 120 120 /* Remove ctl function */ 121 int ret = ddf_fun_unbind(usb_mid->ctl_fun);121 errno_t ret = ddf_fun_unbind(usb_mid->ctl_fun); 122 122 if (ret != EOK) { 123 123 usb_log_error("Failed to unbind USB MID ctl function: %s.\n", … … 137 137 ddf_fun_get_name(iface->fun)); 138 138 139 const int pret = usbmid_interface_destroy(iface);139 const errno_t pret = usbmid_interface_destroy(iface); 140 140 if (pret != EOK) { 141 141 usb_log_error("Failed to remove child `%s': %s\n",
Note:
See TracChangeset
for help on using the changeset viewer.