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