Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/resolve.c

    r27ed734c r2c202c5  
    3434 */
    3535#include <inttypes.h>
     36#include <usb/dev.h>
    3637#include <usb/hc.h>
    3738#include <devman.h>
     
    7778    devman_handle_t *dev_handle)
    7879{
    79         int rc;
    8080        usb_hc_connection_t conn;
    81 
    8281        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);
    9184
    9285        return rc;
     
    192185                /* Try to find its host controller. */
    193186                if (!found_hc) {
    194                         rc = usb_hc_find(tmp_handle, &hc_handle);
     187                        rc = usb_get_hc_by_handle(tmp_handle, &hc_handle);
    195188                        if (rc == EOK) {
    196189                                found_hc = true;
Note: See TracChangeset for help on using the changeset viewer.