Ignore:
File:
1 edited

Legend:

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

    r56fd7cf r9d58539  
    196196{
    197197        test2_t *test2;
    198         const char *dev_name = ddf_dev_get_name(dev);
    199198
    200199        ddf_msg(LVL_DEBUG, "test2_dev_add(name=\"%s\", handle=%d)",
    201             dev_name, (int) ddf_dev_get_handle(dev));
     200            dev->name, (int) dev->handle);
    202201
    203202        test2 = ddf_dev_data_alloc(dev, sizeof(test2_t));
     
    209208        test2->dev = dev;
    210209
    211         if (str_cmp(dev_name, "child") != 0) {
     210        if (str_cmp(dev->name, "child") != 0) {
    212211                fid_t postpone = fibril_create(plug_unplug, test2);
    213212                if (postpone == 0) {
     
    226225static int test2_dev_remove(ddf_dev_t *dev)
    227226{
    228         test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
     227        test2_t *test2 = (test2_t *)dev->driver_data;
    229228        int rc;
    230229
     
    260259static int test2_dev_gone(ddf_dev_t *dev)
    261260{
    262         test2_t *test2 = (test2_t *)ddf_dev_data_get(dev);
     261        test2_t *test2 = (test2_t *)dev->driver_data;
    263262        int rc;
    264263
Note: See TracChangeset for help on using the changeset viewer.