Changes in uspace/drv/vhc/hub.c [79ae36dd:7d521e24] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/hub.c

    r79ae36dd r7d521e24  
    3333 * @brief Virtual USB hub.
    3434 */
    35 
    3635#include <usb/classes/classes.h>
    3736#include <usbvirt/device.h>
    3837#include <errno.h>
    39 #include <async.h>
    4038#include <str_error.h>
    4139#include <stdlib.h>
     
    4644
    4745#include "hub.h"
     46//#include "hub/virthub.h"
    4847#include "vhcd.h"
    4948#include "conn.h"
     
    9897         * Wait until parent device is properly initialized.
    9998         */
    100         async_sess_t *sess;
     99        int phone;
    101100        do {
    102                 sess = devman_device_connect(EXCHANGE_SERIALIZE, hc_dev->handle, 0);
    103         } while (!sess);
    104         async_hangup(sess);
     101                phone = devman_device_connect(hc_dev->handle, 0);
     102        } while (phone < 0);
     103        async_hangup(phone);
    105104
    106105        int rc;
     
    130129        return 0;
    131130}
     131       
    132132
    133133/**
Note: See TracChangeset for help on using the changeset viewer.