Ignore:
File:
1 edited

Legend:

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

    r4087a33 r0d6915f  
    117117        printf(NAME": the '%s' driver was added to the list of available "
    118118            "drivers.\n", drv->name);
    119 
    120         printf(NAME ": match ids:");
    121         link_t *cur;
    122         for (cur = drv->match_ids.ids.next; cur != &drv->match_ids.ids; cur = cur->next) {
    123                 match_id_t *match_id = list_get_instance(cur, match_id_t, link);
    124                 printf(" %d:%s", match_id->score, match_id->id);
    125         }
    126         printf("\n");
    127119}
    128120
     
    651643       
    652644        /* Send the device to the driver. */
    653         aid_t req = async_send_1(phone, DRIVER_ADD_DEVICE, node->handle,
    654             &answer);
     645        devman_handle_t parent_handle;
     646        if (node->parent) {
     647                parent_handle = node->parent->handle;
     648        } else {
     649                parent_handle = 0;
     650        }
     651        aid_t req = async_send_2(phone, DRIVER_ADD_DEVICE, node->handle,
     652            parent_handle, &answer);
    655653       
    656654        /* Send the device's name to the driver. */
Note: See TracChangeset for help on using the changeset viewer.