Searched refs:ctcls (Results 1 – 1 of 1) sorted by relevance
| /Linux-v6.1/drivers/comedi/drivers/ |
| D | comedi_test.c | 63 static struct class *ctcls; variable 798 ctcls = class_create(THIS_MODULE, CLASS_NAME); in comedi_test_init() 799 if (IS_ERR(ctcls)) { in comedi_test_init() 804 ctdev = device_create(ctcls, NULL, MKDEV(0, 0), NULL, DEV_NAME); in comedi_test_init() 820 device_destroy(ctcls, MKDEV(0, 0)); in comedi_test_init() 822 class_destroy(ctcls); in comedi_test_init() 825 ctcls = NULL; in comedi_test_init() 836 if (ctcls) { in comedi_test_exit() 837 device_destroy(ctcls, MKDEV(0, 0)); in comedi_test_exit() 838 class_destroy(ctcls); in comedi_test_exit()
|