Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/e1k/e1k.c

    r3a4c6d9 r870841cf  
    175175        /** Lock for EEPROM access */
    176176        fibril_mutex_t eeprom_lock;
    177 
    178177} e1000_t;
    179178
     
    11931192                if (frame != NULL) {
    11941193                        memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size);
    1195 
    11961194                        nic_received_frame(nic, frame);
    11971195                } else {
     
    22032201                goto err_fun_bind;
    22042202
    2205         rc = nic_fun_add_to_cats(fun);
    2206         if (rc != EOK) {
    2207                 ddf_msg(LVL_ERROR, "Failed adding function to categories");
    2208                 ddf_fun_unbind(fun);
    2209                 return rc;
    2210         }
     2203        rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     2204        if (rc != EOK)
     2205                goto err_add_to_cat;
     2206
    22112207        return EOK;
    22122208
     2209err_add_to_cat:
     2210        ddf_fun_unbind(fun);
    22132211err_fun_bind:
    22142212err_rx_structure:
     
    23902388
    23912389        memcpy(e1000->tx_frame_virt[tdt], data, size);
     2390
    23922391        tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]);
    23932392        tx_descriptor_addr->length = size;
Note: See TracChangeset for help on using the changeset viewer.