Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/misc/mic/cosm/
Dcosm_main.c22 static struct class *g_cosm_class; variable
256 cdev->sdev = device_create_with_groups(g_cosm_class, cdev->dev.parent, in cosm_driver_probe()
276 device_destroy(g_cosm_class, MKDEV(0, cdev->index)); in cosm_driver_probe()
287 device_destroy(g_cosm_class, MKDEV(0, cdev->index)); in cosm_driver_remove()
346 g_cosm_class = class_create(THIS_MODULE, cosm_driver_name); in cosm_init()
347 if (IS_ERR(g_cosm_class)) { in cosm_init()
348 ret = PTR_ERR(g_cosm_class); in cosm_init()
362 class_destroy(g_cosm_class); in cosm_init()
372 class_destroy(g_cosm_class); in cosm_exit()