Changeset df747b9c in mainline for uspace/srv/drivers/rootia32/rootia32.c
- Timestamp:
- 2010-04-23T11:30:25Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5af21c5
- Parents:
- a78fa2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/drivers/rootia32/rootia32.c
ra78fa2a rdf747b9c 59 59 } rootia32_child_dev_data_t; 60 60 61 static boolrootia32_add_device(device_t *dev);61 static int rootia32_add_device(device_t *dev); 62 62 static bool rootia32_init(); 63 63 … … 144 144 145 145 // register child device 146 if ( !child_device_register(child, parent)) {146 if (EOK != child_device_register(child, parent)) { 147 147 goto failure; 148 148 } … … 171 171 172 172 /** Get the root device. 173 * 173 174 * @param dev the device which is root of the whole device tree (both of HW and pseudo devices). 174 */ 175 static bool rootia32_add_device(device_t *dev) 175 * @return 0 on success, negative error number otherwise. 176 */ 177 static int rootia32_add_device(device_t *dev) 176 178 { 177 179 printf(NAME ": rootia32_add_device, device handle = %d\n", dev->handle); … … 182 184 } 183 185 184 return true;186 return EOK; 185 187 } 186 188
Note:
See TracChangeset
for help on using the changeset viewer.