Ignore:
File:
1 edited

Legend:

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

    r7551706b r9f6c5ef0  
    3434#include <errno.h>
    3535#include <str_error.h>
    36 #include "test1.h"
     36#include <driver.h>
     37
     38#define NAME "test1"
    3739
    3840static int add_device(device_t *dev);
     
    6264
    6365        int rc = child_device_register_wrapper(parent, name,
    64             match_id, match_score);
     66            match_id, match_score, NULL);
    6567
    6668        if (rc == EOK) {
     
    9698        add_device_to_class(dev, "virtual");
    9799
    98         if (str_cmp(dev->name, "null") == 0) {
    99                 dev->ops = &char_device_ops;
    100                 add_device_to_class(dev, "virt-null");
    101         } else if (dev->parent == NULL) {
     100        if (dev->parent == NULL) {
    102101                register_child_verbose(dev, "cloning myself ;-)", "clone",
    103102                    "virtual&test1", 10);
     
    118117}
    119118
     119
Note: See TracChangeset for help on using the changeset viewer.