Changes in uspace/drv/test1/test1.c [7551706b:9f6c5ef0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/test1/test1.c
r7551706b r9f6c5ef0 34 34 #include <errno.h> 35 35 #include <str_error.h> 36 #include "test1.h" 36 #include <driver.h> 37 38 #define NAME "test1" 37 39 38 40 static int add_device(device_t *dev); … … 62 64 63 65 int rc = child_device_register_wrapper(parent, name, 64 match_id, match_score );66 match_id, match_score, NULL); 65 67 66 68 if (rc == EOK) { … … 96 98 add_device_to_class(dev, "virtual"); 97 99 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) { 102 101 register_child_verbose(dev, "cloning myself ;-)", "clone", 103 102 "virtual&test1", 10); … … 118 117 } 119 118 119
Note:
See TracChangeset
for help on using the changeset viewer.