Changes in uspace/drv/root/root/root.c [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/root/root/root.c
rcde999a rb7fd2a0 64 64 #define VIRTUAL_FUN_MATCH_SCORE 100 65 65 66 static int root_dev_add(ddf_dev_t *dev);67 static int root_fun_online(ddf_fun_t *fun);68 static int root_fun_offline(ddf_fun_t *fun);66 static errno_t root_dev_add(ddf_dev_t *dev); 67 static errno_t root_fun_online(ddf_fun_t *fun); 68 static errno_t root_fun_offline(ddf_fun_t *fun); 69 69 70 70 /** The root device driver's standard operations. */ … … 86 86 * @return EOK on success or an error code 87 87 */ 88 static int add_virtual_root_fun(ddf_dev_t *dev)88 static errno_t add_virtual_root_fun(ddf_dev_t *dev) 89 89 { 90 90 const char *name = VIRTUAL_FUN_NAME; 91 91 ddf_fun_t *fun; 92 int rc;92 errno_t rc; 93 93 94 94 ddf_msg(LVL_DEBUG, "Adding new function for virtual devices. " … … 127 127 * @return EOK on success or an error code 128 128 */ 129 static int add_platform_fun(ddf_dev_t *dev)129 static errno_t add_platform_fun(ddf_dev_t *dev) 130 130 { 131 131 char *match_id; … … 135 135 const char *name = PLATFORM_FUN_NAME; 136 136 ddf_fun_t *fun; 137 int rc;137 errno_t rc; 138 138 139 139 /* Get platform name from sysinfo. */ … … 201 201 * of HW and pseudo devices). 202 202 */ 203 static int root_dev_add(ddf_dev_t *dev)203 static errno_t root_dev_add(ddf_dev_t *dev) 204 204 { 205 205 ddf_msg(LVL_DEBUG, "root_dev_add, device handle=%" PRIun, … … 211 211 * vital for the system. 212 212 */ 213 int res = add_virtual_root_fun(dev);213 errno_t res = add_virtual_root_fun(dev); 214 214 if (res != EOK) 215 215 ddf_msg(LVL_WARN, "Failed to add virtual child."); … … 223 223 } 224 224 225 static int root_fun_online(ddf_fun_t *fun)225 static errno_t root_fun_online(ddf_fun_t *fun) 226 226 { 227 227 ddf_msg(LVL_DEBUG, "root_fun_online()"); … … 229 229 } 230 230 231 static int root_fun_offline(ddf_fun_t *fun)231 static errno_t root_fun_offline(ddf_fun_t *fun) 232 232 { 233 233 ddf_msg(LVL_DEBUG, "root_fun_offline()");
Note:
See TracChangeset
for help on using the changeset viewer.