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