Home
last modified time | relevance | path

Searched refs:ctcls (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/staging/comedi/drivers/
Dcomedi_test.c65 static struct class *ctcls; variable
756 ctcls = class_create(THIS_MODULE, CLASS_NAME); in comedi_test_init()
757 if (IS_ERR(ctcls)) { in comedi_test_init()
762 ctdev = device_create(ctcls, NULL, MKDEV(0, 0), NULL, DEV_NAME); in comedi_test_init()
778 device_destroy(ctcls, MKDEV(0, 0)); in comedi_test_init()
780 class_destroy(ctcls); in comedi_test_init()
783 ctcls = NULL; in comedi_test_init()
794 if (ctcls) { in comedi_test_exit()
795 device_destroy(ctcls, MKDEV(0, 0)); in comedi_test_exit()
796 class_destroy(ctcls); in comedi_test_exit()