Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/test/test2/test2.c

    r9d58539 r56fd7cf  
    196196{
    197197        test2_t *test2;
     198        const char *dev_name = ddf_dev_get_name(dev);
    198199
    199200        ddf_msg(LVL_DEBUG, "test2_dev_add(name=\"%s\", handle=%d)",
    200             dev->name, (int) dev->handle);
     201            dev_name, (int) ddf_dev_get_handle(dev));
    201202
    202203        test2 = ddf_dev_data_alloc(dev, sizeof(test2_t));
     
    208209        test2->dev = dev;
    209210
    210         if (str_cmp(dev->name, "child") != 0) {
     211        if (str_cmp(dev_name, "child") != 0) {
    211212                fid_t postpone = fibril_create(plug_unplug, test2);
    212213                if (postpone == 0) {
     
    225226static int test2_dev_remove(ddf_dev_t *dev)
    226227{
    227         test2_t *test2 = (test2_t *)dev->driver_data;
     228        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    228229        int rc;
    229230
     
    259260static int test2_dev_gone(ddf_dev_t *dev)
    260261{
    261         test2_t *test2 = (test2_t *)dev->driver_data;
     262        test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
    262263        int rc;
    263264
Note: See TracChangeset for help on using the changeset viewer.