Changes in uspace/lib/usb/src/resolve.c [27ed734c:2c202c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/resolve.c
r27ed734c r2c202c5 34 34 */ 35 35 #include <inttypes.h> 36 #include <usb/dev.h> 36 37 #include <usb/hc.h> 37 38 #include <devman.h> … … 77 78 devman_handle_t *dev_handle) 78 79 { 79 int rc;80 80 usb_hc_connection_t conn; 81 82 81 usb_hc_connection_initialize(&conn, hc_handle); 83 rc = usb_hc_connection_open(&conn); 84 if (rc != EOK) { 85 return rc; 86 } 87 88 rc = usb_hc_get_handle_by_address(&conn, addr, dev_handle); 89 90 usb_hc_connection_close(&conn); 82 83 const int rc = usb_hc_get_handle_by_address(&conn, addr, dev_handle); 91 84 92 85 return rc; … … 192 185 /* Try to find its host controller. */ 193 186 if (!found_hc) { 194 rc = usb_ hc_find(tmp_handle, &hc_handle);187 rc = usb_get_hc_by_handle(tmp_handle, &hc_handle); 195 188 if (rc == EOK) { 196 189 found_hc = true;
Note:
See TracChangeset
for help on using the changeset viewer.