Changeset a32defa in mainline for uspace/srv/devman/main.c
- Timestamp:
- 2010-06-01T20:53:07Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a6e54c5d
- Parents:
- ce89036b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/main.c
rce89036b ra32defa 240 240 241 241 // try to find suitable driver and assign it to the device 242 assign_driver(node, &drivers_list );242 assign_driver(node, &drivers_list, &device_tree); 243 243 } 244 244 … … 247 247 // create devmap path and name for the device 248 248 char *devmap_pathname = NULL; 249 asprintf(&devmap_pathname, "%s/%s% s%s", DEVMAP_CLASS_NAMESPACE, cli->dev_class->name, DEVMAP_SEPARATOR, cli->dev_name);249 asprintf(&devmap_pathname, "%s/%s%c%s", DEVMAP_CLASS_NAMESPACE, cli->dev_class->name, DEVMAP_SEPARATOR, cli->dev_name); 250 250 if (NULL == devmap_pathname) { 251 251 return; … … 254 254 // register the device by the device mapper and remember its devmap handle 255 255 devmap_device_register(devmap_pathname, &cli->devmap_handle); 256 257 // add device to the hash map of class devices registered by device mapper 258 class_add_devmap_device(&class_list, cli); 256 259 257 260 free(devmap_pathname); … … 297 300 { 298 301 driver_t *driver = (driver_t *)drv; 299 initialize_running_driver(driver );302 initialize_running_driver(driver, &device_tree); 300 303 printf(NAME ": the %s driver was successfully initialized. \n", driver->name); 301 304 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.