Searched refs:class_pktcdvd (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/block/
H A Dpktcdvd.c102 static struct class *class_pktcdvd = NULL; /* /sys/class/pktcdvd */ variable in typeref:struct:class
315 if (class_pktcdvd) { pkt_sysfs_dev_new()
316 pd->dev = device_create(class_pktcdvd, NULL, MKDEV(0, 0), NULL, pkt_sysfs_dev_new()
335 if (class_pktcdvd) pkt_sysfs_dev_remove()
423 class_pktcdvd = kzalloc(sizeof(*class_pktcdvd), GFP_KERNEL); pkt_sysfs_init()
424 if (!class_pktcdvd) pkt_sysfs_init()
426 class_pktcdvd->name = DRIVER_NAME; pkt_sysfs_init()
427 class_pktcdvd->owner = THIS_MODULE; pkt_sysfs_init()
428 class_pktcdvd->class_release = class_pktcdvd_release; pkt_sysfs_init()
429 class_pktcdvd->class_attrs = class_pktcdvd_attrs; pkt_sysfs_init()
430 ret = class_register(class_pktcdvd); pkt_sysfs_init()
432 kfree(class_pktcdvd); pkt_sysfs_init()
433 class_pktcdvd = NULL; pkt_sysfs_init()
442 if (class_pktcdvd) pkt_sysfs_cleanup()
443 class_destroy(class_pktcdvd); pkt_sysfs_cleanup()
444 class_pktcdvd = NULL; pkt_sysfs_cleanup()

Completed in 71 milliseconds