Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/rtl8139/driver.c

    r3a4c6d9 r870841cf  
    13131313                goto err_fun_create;
    13141314        }
    1315 
    1316         rc = nic_fun_add_to_cats(fun);
     1315        rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
    13171316        if (rc != EOK) {
    1318                 ddf_msg(LVL_ERROR, "Failed adding function to categories");
    1319                 ddf_fun_unbind(fun);
    1320                 return rc;
     1317                ddf_msg(LVL_ERROR, "Failed adding function to category");
     1318                goto err_fun_bind;
    13211319        }
    13221320
     
    13261324        return EOK;
    13271325
    1328         // err_fun_bind:
    1329         // ddf_fun_unbind(fun);
     1326err_fun_bind:
     1327        ddf_fun_unbind(fun);
    13301328err_fun_create:
    13311329        ddf_fun_destroy(fun);
Note: See TracChangeset for help on using the changeset viewer.