Changeset 87b4baa in mainline for uspace/srv/devman/devman.c


Ignore:
Timestamp:
2010-12-17T20:16:46Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
424558a
Parents:
463e734 (diff), bbc74af7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/devman.c

    r463e734 r87b4baa  
    498498 * @param phone         The phone to the driver.
    499499 */
    500 void set_driver_phone(driver_t *driver, ipcarg_t phone)
     500void set_driver_phone(driver_t *driver, sysarg_t phone)
    501501{
    502502        fibril_mutex_lock(&driver->driver_mutex);
     
    678678}
    679679
    680 static FIBRIL_MUTEX_INITIALIZE(add_device_guard);
    681 
    682680/** Pass a device to running driver.
    683681 *
     
    687685void add_device(int phone, driver_t *drv, node_t *node, dev_tree_t *tree)
    688686{
    689         fibril_mutex_lock(&add_device_guard);
    690 
    691687        /*
    692688         * We do not expect to have driver's mutex locked as we do not
     
    696692            node->name);
    697693       
    698         ipcarg_t rc;
     694        sysarg_t rc;
    699695        ipc_call_t answer;
    700696       
     
    719715        /* Wait for answer from the driver. */
    720716        async_wait_for(req, &rc);
    721 
    722         fibril_mutex_unlock(&add_device_guard);
    723717
    724718        switch(rc) {
     
    766760                start_driver(drv);
    767761        }
    768         fibril_mutex_unlock(&drv->driver_mutex);
    769        
    770         fibril_mutex_lock(&drv->driver_mutex);
    771762        bool is_running = drv->state == DRIVER_RUNNING;
    772763        fibril_mutex_unlock(&drv->driver_mutex);
Note: See TracChangeset for help on using the changeset viewer.