Searched refs:file_cdev (Results 1 – 1 of 1) sorted by relevance
109 static struct cdev file_cdev; variable2239 cdev_init(&file_cdev, &visorchipset_fops); in visorchipset_file_init()2240 file_cdev.owner = THIS_MODULE; in visorchipset_file_init()2252 rc = cdev_add(&file_cdev, MKDEV(MAJOR(major_dev), 0), 1); in visorchipset_file_init()2341 if (file_cdev.ops) in visorchipset_file_cleanup()2342 cdev_del(&file_cdev); in visorchipset_file_cleanup()2343 file_cdev.ops = NULL; in visorchipset_file_cleanup()