Changeset b12d3cc in mainline for uspace/srv/devman/devman.c


Ignore:
Timestamp:
2010-11-26T14:56:09Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da55d5b
Parents:
bbe7848 (diff), 0d6915f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge ddf-fixes branch

File:
1 edited

Legend:

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

    rbbe7848 rb12d3cc  
    651651       
    652652        /* Send the device to the driver. */
    653         aid_t req = async_send_1(phone, DRIVER_ADD_DEVICE, node->handle,
    654             &answer);
     653        devman_handle_t parent_handle;
     654        if (node->parent) {
     655                parent_handle = node->parent->handle;
     656        } else {
     657                parent_handle = 0;
     658        }
     659        aid_t req = async_send_2(phone, DRIVER_ADD_DEVICE, node->handle,
     660            parent_handle, &answer);
    655661       
    656662        /* Send the device's name to the driver. */
Note: See TracChangeset for help on using the changeset viewer.