Searched refs:phantom_class (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/misc/ |
H A D | phantom.c | 38 static struct class *phantom_class; variable 406 if (IS_ERR(device_create(phantom_class, &pdev->dev, in phantom_probe() 439 device_destroy(phantom_class, MKDEV(phantom_major, minor)); in phantom_remove() 506 phantom_class = class_create(THIS_MODULE, "phantom"); in phantom_init() 507 if (IS_ERR(phantom_class)) { in phantom_init() 508 retval = PTR_ERR(phantom_class); in phantom_init() 512 retval = class_create_file(phantom_class, &class_attr_version.attr); in phantom_init() 538 class_remove_file(phantom_class, &class_attr_version.attr); in phantom_init() 540 class_destroy(phantom_class); in phantom_init() 551 class_remove_file(phantom_class, in phantom_exit() [all...] |
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | phantom.c | 38 static struct class *phantom_class; variable 406 if (IS_ERR(device_create(phantom_class, &pdev->dev, in phantom_probe() 439 device_destroy(phantom_class, MKDEV(phantom_major, minor)); in phantom_remove() 506 phantom_class = class_create("phantom"); in phantom_init() 507 if (IS_ERR(phantom_class)) { in phantom_init() 508 retval = PTR_ERR(phantom_class); in phantom_init() 512 retval = class_create_file(phantom_class, &class_attr_version.attr); in phantom_init() 538 class_remove_file(phantom_class, &class_attr_version.attr); in phantom_init() 540 class_destroy(phantom_class); in phantom_init() 551 class_remove_file(phantom_class, in phantom_exit() [all...] |
Completed in 2 milliseconds