Searched refs:new_cdev (Results 1 – 1 of 1) sorted by relevance
82 struct char_device *cdev, *new_cdev; in cdget() local88 new_cdev = alloc_cdev(); in cdget()89 if (!new_cdev) in cdget()91 atomic_set(&new_cdev->count,1); in cdget()92 new_cdev->dev = dev; in cdget()96 list_add(&new_cdev->hash, head); in cdget()98 return new_cdev; in cdget()101 destroy_cdev(new_cdev); in cdget()