Changeset 68414f4a in mainline for uspace/drv/rootvirt/rootvirt.c
- Timestamp:
- 2011-02-13T20:03:45Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bab6388
- Parents:
- 8b1e15ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/rootvirt/rootvirt.c
r8b1e15ac r68414f4a 61 61 }; 62 62 63 static int add_device(device_t *dev);63 static int rootvirt_add_device(device_t *dev); 64 64 65 65 static driver_ops_t rootvirt_ops = { 66 .add_device = & add_device66 .add_device = &rootvirt_add_device 67 67 }; 68 68 … … 78 78 * @return EOK on success or negative error code. 79 79 */ 80 static int add_child(device_t *vdev, virtual_function_t *vfun)80 static int rootvirt_add_fun(device_t *vdev, virtual_function_t *vfun) 81 81 { 82 82 printf(NAME ": registering function `%s' (match \"%s\")\n", … … 97 97 } 98 98 99 static int add_device(device_t *dev)99 static int rootvirt_add_device(device_t *dev) 100 100 { 101 101 static int instances = 0; … … 117 117 virtual_function_t *vfun = virtual_functions; 118 118 while (vfun->name != NULL) { 119 (void) add_child(dev, vfun);119 (void) rootvirt_add_fun(dev, vfun); 120 120 vfun++; 121 121 }
Note:
See TracChangeset
for help on using the changeset viewer.