Ignore:
File:
1 edited

Legend:

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

    r267f235 r0c0f823b  
    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
     
    308307{
    309308        printf(NAME ": HelenOS test2 virtual device driver\n");
    310         ddf_log_init(NAME);
     309        ddf_log_init(NAME, LVL_NOTE);
    311310        return ddf_driver_main(&test2_driver);
    312311}
Note: See TracChangeset for help on using the changeset viewer.