Changeset e55d2c1 in mainline for uspace/drv/nic/ne2k/ne2k.c


Ignore:
Timestamp:
2024-04-07T12:53:23Z (10 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
2a0c827c
Parents:
c37c24c
Message:

add_to_cat func in lib

File:
1 edited

Legend:

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

    rc37c24c re55d2c1  
    4343#include <str_error.h>
    4444#include <async.h>
     45#include <ddf/log.h>
    4546#include "dp8390.h"
    4647
     
    443444        }
    444445
    445         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     446        rc = nic_fun_add_to_cats(fun);
    446447        if (rc != EOK) {
     448                ddf_msg(LVL_ERROR, "Failed adding function to categories");
    447449                ddf_fun_unbind(fun);
    448                 ddf_fun_destroy(fun);
    449                 return rc;
    450         }
    451         rc = ddf_fun_add_to_category(fun, "pcap");
    452         if (rc != EOK) {
    453                 //ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
    454                 ddf_fun_unbind(fun);
    455                 ddf_fun_destroy(fun);
    456450                return rc;
    457451        }
     
    483477        nic_driver_implement(&ne2k_driver_ops, &ne2k_dev_ops, &ne2k_nic_iface);
    484478
     479        ddf_log_init(NAME);
    485480        return ddf_driver_main(&ne2k_driver);
    486481}
Note: See TracChangeset for help on using the changeset viewer.