Changeset a78fa2a in mainline for uspace/lib/libdrv/generic/driver.c


Ignore:
Timestamp:
2010-04-23T08:35:36Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
df747b9c
Parents:
1f8657b
Message:

Send device's name to a driver when the device is passed to it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libdrv/generic/driver.c

    r1f8657b ra78fa2a  
    111111        device_t *dev = driver_create_device();
    112112        dev->handle = dev_handle;
     113        async_string_receive(&dev->name, 0, NULL);
    113114        add_to_devices_list(dev);
    114115        if (driver->driver_ops->add_device(dev)) {             
     
    121122                ret = 0;
    122123        }
    123         ipc_answer_1(iid, EOK, ret);
     124        ipc_answer_0(iid, EOK);
    124125}
    125126
Note: See TracChangeset for help on using the changeset viewer.