Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/root/root/root.c

    rcde999a rb7fd2a0  
    6464#define VIRTUAL_FUN_MATCH_SCORE 100
    6565
    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);
     66static errno_t root_dev_add(ddf_dev_t *dev);
     67static errno_t root_fun_online(ddf_fun_t *fun);
     68static errno_t root_fun_offline(ddf_fun_t *fun);
    6969
    7070/** The root device driver's standard operations. */
     
    8686 * @return      EOK on success or an error code
    8787 */
    88 static int add_virtual_root_fun(ddf_dev_t *dev)
     88static errno_t add_virtual_root_fun(ddf_dev_t *dev)
    8989{
    9090        const char *name = VIRTUAL_FUN_NAME;
    9191        ddf_fun_t *fun;
    92         int rc;
     92        errno_t rc;
    9393
    9494        ddf_msg(LVL_DEBUG, "Adding new function for virtual devices. "
     
    127127 * @return      EOK on success or an error code
    128128 */
    129 static int add_platform_fun(ddf_dev_t *dev)
     129static errno_t add_platform_fun(ddf_dev_t *dev)
    130130{
    131131        char *match_id;
     
    135135        const char *name = PLATFORM_FUN_NAME;
    136136        ddf_fun_t *fun;
    137         int rc;
     137        errno_t rc;
    138138
    139139        /* Get platform name from sysinfo. */
     
    201201 *                      of HW and pseudo devices).
    202202 */
    203 static int root_dev_add(ddf_dev_t *dev)
     203static errno_t root_dev_add(ddf_dev_t *dev)
    204204{
    205205        ddf_msg(LVL_DEBUG, "root_dev_add, device handle=%" PRIun,
     
    211211         * vital for the system.
    212212         */
    213         int res = add_virtual_root_fun(dev);
     213        errno_t res = add_virtual_root_fun(dev);
    214214        if (res != EOK)
    215215                ddf_msg(LVL_WARN, "Failed to add virtual child.");
     
    223223}
    224224
    225 static int root_fun_online(ddf_fun_t *fun)
     225static errno_t root_fun_online(ddf_fun_t *fun)
    226226{
    227227        ddf_msg(LVL_DEBUG, "root_fun_online()");
     
    229229}
    230230
    231 static int root_fun_offline(ddf_fun_t *fun)
     231static errno_t root_fun_offline(ddf_fun_t *fun)
    232232{
    233233        ddf_msg(LVL_DEBUG, "root_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.