Ignore:
File:
1 edited

Legend:

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

    r2c202c5 r27ed734c  
    3434 */
    3535#include <inttypes.h>
    36 #include <usb/dev.h>
    3736#include <usb/hc.h>
    3837#include <devman.h>
     
    7877    devman_handle_t *dev_handle)
    7978{
     79        int rc;
    8080        usb_hc_connection_t conn;
     81
    8182        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);
    8491
    8592        return rc;
     
    185192                /* Try to find its host controller. */
    186193                if (!found_hc) {
    187                         rc = usb_get_hc_by_handle(tmp_handle, &hc_handle);
     194                        rc = usb_hc_find(tmp_handle, &hc_handle);
    188195                        if (rc == EOK) {
    189196                                found_hc = true;
Note: See TracChangeset for help on using the changeset viewer.