Searched refs:adf_ctl_drv (Results 1 – 3 of 3) sorted by relevance
40 static struct adf_ctl_drv_info adf_ctl_drv; variable44 device_destroy(adf_ctl_drv.drv_class, MKDEV(adf_ctl_drv.major, 0)); in adf_chr_drv_destroy()45 cdev_del(&adf_ctl_drv.drv_cdev); in adf_chr_drv_destroy()46 class_destroy(adf_ctl_drv.drv_class); in adf_chr_drv_destroy()47 unregister_chrdev_region(MKDEV(adf_ctl_drv.major, 0), 1); in adf_chr_drv_destroy()60 adf_ctl_drv.drv_class = class_create(DEVICE_NAME); in adf_chr_drv_create()61 if (IS_ERR(adf_ctl_drv.drv_class)) { in adf_chr_drv_create()65 adf_ctl_drv.major = MAJOR(dev_id); in adf_chr_drv_create()66 cdev_init(&adf_ctl_drv.drv_cdev, &adf_ctl_ops); in adf_chr_drv_create()67 if (cdev_add(&adf_ctl_drv.drv_cdev, dev_id, 1)) { in adf_chr_drv_create()[all …]
5 adf_ctl_drv.o \
[all...]